equal
deleted
inserted
replaced
24 |
24 |
25 #include <stdint.h> |
25 #include <stdint.h> |
26 #include <ostream> |
26 #include <ostream> |
27 |
27 |
28 namespace ns3 { |
28 namespace ns3 { |
|
29 |
|
30 class Ipv4Mask; |
29 |
31 |
30 /** Ipv4 addresses are stored in host order in |
32 /** Ipv4 addresses are stored in host order in |
31 * this class. |
33 * this class. |
32 */ |
34 */ |
33 class Ipv4Address { |
35 class Ipv4Address { |
80 */ |
82 */ |
81 void Print (std::ostream &os) const; |
83 void Print (std::ostream &os) const; |
82 |
84 |
83 bool IsBroadcast (void); |
85 bool IsBroadcast (void); |
84 bool IsMulticast (void); |
86 bool IsMulticast (void); |
|
87 /** |
|
88 * \brief Combine this address with a network mask |
|
89 * |
|
90 * This method returns an IPv4 address that is this address combined |
|
91 * (bitwise and) with a network mask, yielding an IPv4 network |
|
92 * address. |
|
93 * |
|
94 * \param a network mask |
|
95 */ |
|
96 Ipv4Address CombineMask (Ipv4Mask const &mask) const; |
85 |
97 |
86 static Ipv4Address GetZero (void); |
98 static Ipv4Address GetZero (void); |
87 static Ipv4Address GetAny (void); |
99 static Ipv4Address GetAny (void); |
88 static Ipv4Address GetBroadcast (void); |
100 static Ipv4Address GetBroadcast (void); |
89 static Ipv4Address GetLoopback (void); |
101 static Ipv4Address GetLoopback (void); |