Gateways support in network controller schema and database (not implemented yet in client) toward GitHub issue #178

This commit is contained in:
Adam Ierymenko 2015-06-13 11:34:31 +02:00
parent 8a9715f183
commit 96a58becf8
6 changed files with 194 additions and 6 deletions

View file

@ -265,6 +265,16 @@ struct InetAddress : public sockaddr_storage
*/
inline unsigned int netmaskBits() const throw() { return port(); }
/**
* Alias for port()
*
* This just aliases port() because for gateways we use this field to
* store the gateway metric.
*
* @return Gateway metric
*/
inline unsigned int metric() const throw() { return port(); }
/**
* Construct a full netmask as an InetAddress
*/