4 #include <netinet/ip.h>
5 #include <netinet/ip6.h>
12 unsigned char mask_bits;
13 unsigned char data[16];
17 Address(const in6_addr &);
18 Address(unsigned short, const unsigned char *, unsigned char);
20 void set_mask(const Address &);
21 std::string str() const;
22 unsigned common_prefix_length(const Address &) const;
23 bool masked_match(const Address &) const;
24 void to_sockaddr(sockaddr_storage &) const;
26 bool operator<(const Address &) const;