Gateways support in network controller schema and database (not implemented yet in client) toward GitHub issue #178
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user