Add patch 49 (add/remove network route when bringing interface up/down)

This commit is contained in:
Tom Henderson committed 2007-07-27 10:48:10 -07:00
1 parent aa32756b5e
commit 492bcf3210
3 files changed
+47 -2

No files matched your search

+6
View File
@@ -145,6 +145,12 @@ Ipv4Address::IsEqual (Ipv4Address other) const
}
}
Ipv4Address
Ipv4Address::CombineMask (Ipv4Mask const &mask) const
{
return Ipv4Address (GetHostOrder () & mask.GetHostOrder ());
}
bool
Ipv4Address::IsMulticast (void)
{
+12
View File
@@ -27,6 +27,8 @@
namespace ns3 {
class Ipv4Mask;
/** Ipv4 addresses are stored in host order in
* this class.
*/
@@ -82,6 +84,16 @@ public:
bool IsBroadcast (void);
bool IsMulticast (void);
/**
* \brief Combine this address with a network mask
*
* This method returns an IPv4 address that is this address combined
* (bitwise and) with a network mask, yielding an IPv4 network
* address.
*
* \param a network mask
*/
Ipv4Address CombineMask (Ipv4Mask const &mask) const;
static Ipv4Address GetZero (void);
static Ipv4Address GetAny (void);