--- a/src/node/ipv4-address.h Mon Jul 16 22:49:48 2007 -0700
+++ b/src/node/ipv4-address.h Wed Jul 18 11:43:39 2007 +0100
@@ -27,6 +27,8 @@
namespace ns3 {
+class Ipv4Mask;
+
/** Ipv4 addresses are stored in host order in
* this class.
*/
@@ -80,8 +82,19 @@
*/
void Print (std::ostream &os) const;
- bool IsBroadcast (void);
+ bool IsBroadcast (void) const;
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);