Gateways support in network controller schema and database (not implemented yet in client) toward GitHub issue #178
This commit is contained in:
parent
8a9715f183
commit
96a58becf8
6 changed files with 194 additions and 6 deletions
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue