equal
deleted
inserted
replaced
117 * address. |
117 * address. |
118 * |
118 * |
119 * \param mask a network mask |
119 * \param mask a network mask |
120 */ |
120 */ |
121 Ipv4Address CombineMask (Ipv4Mask const &mask) const; |
121 Ipv4Address CombineMask (Ipv4Mask const &mask) const; |
|
122 /** |
|
123 * \brief Generate subnet-directed broadcast address corresponding to mask |
|
124 * |
|
125 * The subnet-directed broadcast address has the host bits set to all |
|
126 * ones. |
|
127 * |
|
128 * \param mask a network mask |
|
129 */ |
|
130 Ipv4Address GetSubnetDirectedBroadcast (Ipv4Mask const &mask) const; |
|
131 bool IsSubnetDirectedBroadcast (Ipv4Mask const &mask) const; |
122 |
132 |
123 static bool IsMatchingType (const Address &address); |
133 static bool IsMatchingType (const Address &address); |
124 operator Address (); |
134 operator Address (); |
125 static Ipv4Address ConvertFrom (const Address &address); |
135 static Ipv4Address ConvertFrom (const Address &address); |
126 |
136 |
149 /* Using this method is frowned upon. |
159 /* Using this method is frowned upon. |
150 * Please, do _not_ use this method. |
160 * Please, do _not_ use this method. |
151 */ |
161 */ |
152 uint32_t GetHostOrder (void) const; |
162 uint32_t GetHostOrder (void) const; |
153 void SetHostOrder (uint32_t value); |
163 void SetHostOrder (uint32_t value); |
|
164 /** |
|
165 * \brief Return the inverse mask in host order. |
|
166 */ |
|
167 uint32_t GetInverse (void) const; |
154 |
168 |
155 void Print (std::ostream &os) const; |
169 void Print (std::ostream &os) const; |
156 |
170 |
157 static Ipv4Mask GetLoopback (void); |
171 static Ipv4Mask GetLoopback (void); |
158 static Ipv4Mask GetZero (void); |
172 static Ipv4Mask GetZero (void); |