BSD routing table works... that hurt much worse than it should have.
This commit is contained in:
parent
d315156733
commit
51766e6549
7 changed files with 94 additions and 34 deletions
|
@ -147,6 +147,15 @@ public:
|
|||
bool isLinkLocal() const
|
||||
throw();
|
||||
|
||||
/**
|
||||
* @return True if this is a loopback address
|
||||
*/
|
||||
inline bool isLoopback() const
|
||||
throw()
|
||||
{
|
||||
return ((*this == LO4)||(*this == LO6));
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ASCII IP/port format representation
|
||||
*/
|
||||
|
@ -286,6 +295,15 @@ public:
|
|||
bool sameNetworkAs(const InetAddress &ipnet) const
|
||||
throw();
|
||||
|
||||
/**
|
||||
* Determine whether this address is within an ip/netmask
|
||||
*
|
||||
* @param ipnet IP/netmask
|
||||
* @return True if this address is within this network
|
||||
*/
|
||||
bool within(const InetAddress &ipnet) const
|
||||
throw();
|
||||
|
||||
/**
|
||||
* Set to null/zero
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue