#include <Ip.h>
Public Member Functions | |
acl_ip_data () | |
acl_ip_data (Ip::Address const &, Ip::Address const &, Ip::Address const &, acl_ip_data *) | |
void | toStr (char *buf, int len) const |
SBuf | toSBuf () const |
Static Public Member Functions | |
static acl_ip_data * | FactoryParse (char const *) |
static int | NetworkCompare (acl_ip_data *const &a, acl_ip_data *const &b) |
Public Attributes | |
Ip::Address | addr1 |
Ip::Address | addr2 |
Ip::Address | mask |
acl_ip_data * | next |
Private Member Functions | |
MEMPROXY_CLASS (acl_ip_data) | |
Static Private Member Functions | |
static bool | DecodeMask (const char *asc, Ip::Address &mask, int string_format_type) |
Detailed Description
Constructor & Destructor Documentation
◆ acl_ip_data() [1/2]
acl_ip_data::acl_ip_data | ( | ) |
Definition at line 542 of file Ip.cc.
Referenced by FactoryParse().
◆ acl_ip_data() [2/2]
acl_ip_data::acl_ip_data | ( | Ip::Address const & | anAddress1, |
Ip::Address const & | anAddress2, | ||
Ip::Address const & | aMask, | ||
acl_ip_data * | aNext | ||
) |
Member Function Documentation
◆ DecodeMask()
|
staticprivate |
Decode an ascii representation (asc) of a IP netmask address or CIDR, and place resulting information in mask. This function should NOT be called if 'asc' is a hostname!
Definition at line 156 of file Ip.cc.
References Ip::Address::applyMask(), Ip::Address::cidr(), DBG_CRITICAL, debugs, Ip::Address::isIPv4(), mask, and Ip::Address::setNoAddr().
Referenced by FactoryParse().
◆ FactoryParse()
|
static |
Definition at line 209 of file Ip.cc.
References acl_ip_data(), addr1, addr2, Ip::Address::applyMask(), Ip::Address::cidr(), DBG_CRITICAL, DBG_IMPORTANT, debugs, DecodeMask(), Ip::EnableIpv6, LOCAL_ARRAY, mask, next, SCAN_ACL1_4, SCAN_ACL1_6, SCAN_ACL2_4, SCAN_ACL2_6, SCAN_ACL3_4, SCAN_ACL3_6, SCAN_ACL4_4, SCAN_ACL4_6, self_destruct(), Ip::Address::setAnyAddr(), Ip::Address::setEmpty(), and Ip::Address::setNoAddr().
Referenced by ACLIP::parse().
◆ MEMPROXY_CLASS()
|
private |
◆ NetworkCompare()
|
static |
Definition at line 121 of file Ip.cc.
References aclIpAddrNetworkCompare(), AclMatchedName, DBG_CRITICAL, debugs, MAX_IPSTRLEN, and toStr().
Referenced by ACLIP::parse().
◆ toSBuf()
SBuf acl_ip_data::toSBuf | ( | ) | const |
Definition at line 72 of file Ip.cc.
References MAX_IPSTRLEN, and toStr().
Referenced by IpAclDumpVisitor::operator()().
◆ toStr()
void acl_ip_data::toStr | ( | char * | buf, |
int | len | ||
) | const |
print/format an acl_ip_data structure for debugging output.
- Parameters
-
buf string buffer to write to len size of the buffer available
Definition at line 41 of file Ip.cc.
References addr1, addr2, Ip::Address::cidr(), Ip::Address::isAnyAddr(), Ip::Address::isIPv4(), Ip::Address::isNoAddr(), mask, and Ip::Address::toStr().
Referenced by NetworkCompare(), and toSBuf().
Member Data Documentation
◆ addr1
Ip::Address acl_ip_data::addr1 |
Definition at line 31 of file Ip.h.
Referenced by aclIpAddrNetworkCompare(), FactoryParse(), ACLIP::match(), and toStr().
◆ addr2
Ip::Address acl_ip_data::addr2 |
Definition at line 33 of file Ip.h.
Referenced by aclIpAddrNetworkCompare(), FactoryParse(), ACLIP::match(), and toStr().
◆ mask
Ip::Address acl_ip_data::mask |
Definition at line 35 of file Ip.h.
Referenced by aclIpAddrNetworkCompare(), DecodeMask(), FactoryParse(), ACLIP::match(), and toStr().
◆ next
acl_ip_data* acl_ip_data::next |
used for parsing, not for storing
Definition at line 37 of file Ip.h.
Referenced by FactoryParse(), and ACLIP::parse().
The documentation for this class was generated from the following files: