#include <Ip.h>

Collaboration diagram for acl_ip_data:

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_dataFactoryParse (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_datanext
 

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

Definition at line 17 of file Ip.h.

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 
)

Definition at line 544 of file Ip.cc.

Member Function Documentation

◆ DecodeMask()

bool acl_ip_data::DecodeMask ( const char *  asc,
Ip::Address mask,
int  ctype 
)
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()

◆ MEMPROXY_CLASS()

acl_ip_data::MEMPROXY_CLASS ( acl_ip_data  )
private

◆ NetworkCompare()

int acl_ip_data::NetworkCompare ( acl_ip_data *const &  a,
acl_ip_data *const &  b 
)
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
bufstring buffer to write to
lensize 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:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors