#include <address.h>
Public Member Functions | |
in6_addr | getNetwork (void) const |
Get network address associated with this cidr. | |
in6_addr | getNetmask (void) const |
Get network mask associated with this cidr. | |
in6_addr | getBroadcast (void) const |
Compute the broadcast address associated with this cidr. | |
void | set (const char *cidr) |
Set the cidr from a full or partial hostname, or from a host/bits specification. | |
IPV6Cidr (const char *cidr) | |
Construct a new cidr from a string. | |
IPV6Cidr () | |
Construct an empty cidr. | |
IPV6Cidr (IPV6Cidr &) | |
Construct a copy of a cidr. | |
bool | isMember (struct sockaddr *saddr) |
See if a socket address is a member of this cidr's network. | |
bool | isMember (struct in6_addr &inaddr) |
See if a low level address object is a member of this cidr's net. | |
Protected Member Functions | |
unsigned | getMask (const char *cp) |
Protected Attributes | |
in6_addr netmask | network |
ost::IPV6Cidr::IPV6Cidr | ( | const char * | cidr | ) |
Construct a new cidr from a string.
cidr | string to use. |
ost::IPV6Cidr::IPV6Cidr | ( | ) |
Construct an empty cidr.
ost::IPV6Cidr::IPV6Cidr | ( | IPV6Cidr & | ) |
Construct a copy of a cidr.
cidr | to copy from. |
struct in6_addr ost::IPV6Cidr::getBroadcast | ( | void | ) | const |
Compute the broadcast address associated with this cidr.
unsigned ost::IPV6Cidr::getMask | ( | const char * | cp | ) | [protected] |
struct in6_addr ost::IPV6Cidr::getNetmask | ( | void | ) | const [inline] |
Get network mask associated with this cidr.
struct in6_addr ost::IPV6Cidr::getNetwork | ( | void | ) | const [inline] |
Get network address associated with this cidr.
bool ost::IPV6Cidr::isMember | ( | struct in6_addr & | inaddr | ) |
See if a low level address object is a member of this cidr's net.
inaddr | object to test. |
bool ost::IPV6Cidr::isMember | ( | struct sockaddr * | saddr | ) |
See if a socket address is a member of this cidr's network.
saddr | pointer to test. |
void ost::IPV6Cidr::set | ( | const char * | cidr | ) |
Set the cidr from a full or partial hostname, or from a host/bits specification.
cidr | string to use. |
struct in6_addr netmask ost::IPV6Cidr::network [protected] |