src/node/ipv4-address.h
changeset 1318 89b78e2d521e
parent 1250 243eb985ad00
child 1706 0df67ef4eb96
child 1742 cf76416ce75b
--- a/src/node/ipv4-address.h	Mon Sep 03 23:32:23 2007 -0700
+++ b/src/node/ipv4-address.h	Tue Sep 04 21:26:54 2007 -0700
@@ -119,6 +119,16 @@
    * \param mask a network mask 
    */
   Ipv4Address CombineMask (Ipv4Mask const &mask) const;
+  /**
+   * \brief Generate subnet-directed broadcast address corresponding to mask
+   *
+   * The subnet-directed broadcast address has the host bits set to all
+   * ones.
+   *
+   * \param mask a network mask 
+   */
+  Ipv4Address GetSubnetDirectedBroadcast (Ipv4Mask const &mask) const;
+  bool IsSubnetDirectedBroadcast (Ipv4Mask const &mask) const;
 
   static bool IsMatchingType (const Address &address);
   operator Address ();
@@ -151,6 +161,10 @@
    */
   uint32_t GetHostOrder (void) const;
   void SetHostOrder (uint32_t value);
+  /**
+   * \brief Return the inverse mask in host order. 
+   */
+  uint32_t GetInverse (void) const;
 
   void Print (std::ostream &os) const;