The CIDR class is used to support routing tables and validate address policies.
More...
#include <address.h>
|
| struct in6_addr | getBroadcast (void) const |
| | Compute the broadcast address associated with this cidr.
|
| |
| struct in6_addr | getNetmask (void) const |
| | Get network mask associated with this cidr.
|
| |
| struct in6_addr | getNetwork (void) const |
| | Get network address associated with this cidr.
|
| |
|
| IPV6Cidr () |
| | Construct an empty cidr.
|
| |
| | IPV6Cidr (const char *cidr) |
| | Construct a new cidr from a string.
|
| |
| | IPV6Cidr (IPV6Cidr &) |
| | Construct a copy of a cidr.
|
| |
| bool | isMember (const struct in6_addr &inaddr) const |
| | See if a low level address object is a member of this cidr's net.
|
| |
| bool | isMember (const struct sockaddr *saddr) const |
| | See if a socket address is a member of this cidr's network.
|
| |
| bool | operator!= (const struct in6_addr &a) const |
| |
| bool | operator!= (const struct sockaddr *sa) const |
| |
| bool | operator== (const struct in6_addr &a) const |
| |
| bool | operator== (const struct sockaddr *sa) const |
| |
| void | set (const char *cidr) |
| | Set the cidr from a full or partial hostname, or from a host/bits specification.
|
| |
|
|
unsigned | getMask (const char *cp) const |
| |
The CIDR class is used to support routing tables and validate address policies.
- Author
- David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org
Classless Internet Domain Routing
Definition at line 254 of file address.h.
◆ IPV6Cidr() [1/2]
| ost::IPV6Cidr::IPV6Cidr |
( |
const char * | cidr | ) |
|
Construct a new cidr from a string.
- Parameters
-
◆ IPV6Cidr() [2/2]
Construct a copy of a cidr.
- Parameters
-
◆ getBroadcast()
| struct in6_addr ost::IPV6Cidr::getBroadcast |
( |
void | | ) |
const |
Compute the broadcast address associated with this cidr.
- Returns
- system binary coded network address.
◆ getNetmask()
| struct in6_addr ost::IPV6Cidr::getNetmask |
( |
void | | ) |
const |
|
inline |
Get network mask associated with this cidr.
- Returns
- system binary coded network mask.
Definition at line 275 of file address.h.
◆ getNetwork()
| struct in6_addr ost::IPV6Cidr::getNetwork |
( |
void | | ) |
const |
|
inline |
Get network address associated with this cidr.
- Returns
- system binary coded address.
Definition at line 266 of file address.h.
◆ isMember() [1/2]
| bool ost::IPV6Cidr::isMember |
( |
const struct in6_addr & | inaddr | ) |
const |
See if a low level address object is a member of this cidr's net.
- Parameters
-
- Returns
- true if member of cidr.
◆ isMember() [2/2]
| bool ost::IPV6Cidr::isMember |
( |
const struct sockaddr * | saddr | ) |
const |
See if a socket address is a member of this cidr's network.
- Parameters
-
- Returns
- true if member of cidr.
◆ operator!=() [1/2]
| bool ost::IPV6Cidr::operator!= |
( |
const struct in6_addr & | a | ) |
const |
|
inline |
◆ operator!=() [2/2]
| bool ost::IPV6Cidr::operator!= |
( |
const struct sockaddr * | sa | ) |
const |
|
inline |
◆ operator==() [1/2]
| bool ost::IPV6Cidr::operator== |
( |
const struct in6_addr & | a | ) |
const |
|
inline |
◆ operator==() [2/2]
| bool ost::IPV6Cidr::operator== |
( |
const struct sockaddr * | sa | ) |
const |
|
inline |
◆ set()
| void ost::IPV6Cidr::set |
( |
const char * | cidr | ) |
|
Set the cidr from a full or partial hostname, or from a host/bits specification.
- Parameters
-
◆ network
| struct in6_addr netmask ost::IPV6Cidr::network |
|
protected |
The documentation for this class was generated from the following file:
- /builddir/build/BUILD/commoncpp-7.0.1/inc/commoncpp/address.h