Asn.cc File Reference
#include "squid.h"
#include "acl/Acl.h"
#include "acl/Asn.h"
#include "acl/Checklist.h"
#include "acl/DestinationAsn.h"
#include "acl/DestinationIp.h"
#include "acl/SourceAsn.h"
#include "acl/Strategised.h"
#include "FwdState.h"
#include "HttpReply.h"
#include "HttpRequest.h"
#include "ipcache.h"
#include "MasterXaction.h"
#include "mgr/Registration.h"
#include "radix.h"
#include "RequestFlags.h"
#include "SquidConfig.h"
#include "Store.h"
#include "StoreClient.h"
Include dependency graph for Asn.cc:

Go to the source code of this file.

Classes

class  m_ADDR
 
struct  as_info
 
class  ASState
 
struct  rtentry_t
 

Macros

#define WHOIS_PORT   43
 
#define AS_REQBUF_SZ   4096
 

Functions

 CBDATA_CLASS_INIT (ASState)
 
static int asnAddNet (char *, int)
 
static void asnCacheStart (int as)
 
static int destroyRadixNode (struct squid_radix_node *rn, void *w)
 
static int printRadixNode (struct squid_radix_node *rn, void *sentry)
 
void asnAclInitialize (ACL *acls)
 
static void destroyRadixNodeInfo (as_info *)
 
int asnMatchIp (CbDataList< int > *data, Ip::Address &addr)
 
static void asnRegisterWithCacheManager (void)
 
void asnInit (void)
 
void asnFreeMemory (void)
 
static void asnStats (StoreEntry *sentry)
 
static void asHandleReply (void *data, StoreIOBuffer result)
 

Variables

struct squid_radix_node_headAS_tree_head
 
static STCB asHandleReply
 
static OBJH asnStats
 
SQUIDCEXTERN int squid_max_keylen
 

Macro Definition Documentation

◆ AS_REQBUF_SZ

#define AS_REQBUF_SZ   4096

Definition at line 33 of file Asn.cc.

Referenced by asHandleReply(), and asnCacheStart().

◆ WHOIS_PORT

#define WHOIS_PORT   43

Definition at line 31 of file Asn.cc.

Function Documentation

◆ asHandleReply()

◆ asnAclInitialize()

void asnAclInitialize ( ACL acls)

◆ asnAddNet()

static int asnAddNet ( char *  as_string,
int  as_number 
)
static

◆ asnCacheStart()

◆ asnMatchIp()

◆ asnRegisterWithCacheManager()

static void asnRegisterWithCacheManager ( void  )
static

Definition at line 185 of file Asn.cc.

References asnStats, and Mgr::RegisterAction().

Referenced by asnInit().

◆ asnStats()

static void asnStats ( StoreEntry sentry)
static

Definition at line 219 of file Asn.cc.

References printRadixNode(), squid_rn_walktree(), and storeAppendPrintf().

◆ CBDATA_CLASS_INIT()

CBDATA_CLASS_INIT ( ASState  )

◆ destroyRadixNode()

static int destroyRadixNode ( struct squid_radix_node rn,
void *  w 
)
static

◆ destroyRadixNodeInfo()

static void destroyRadixNodeInfo ( as_info e_info)
static

Definition at line 480 of file Asn.cc.

References as_info::as_number, data, CbDataList< C >::next, and NULL.

Referenced by destroyRadixNode().

◆ printRadixNode()

static int printRadixNode ( struct squid_radix_node rn,
void *  sentry 
)
static

Variable Documentation

◆ AS_tree_head

struct squid_radix_node_head* AS_tree_head

Definition at line 52 of file Asn.cc.

◆ asHandleReply

STCB asHandleReply
static

Definition at line 111 of file Asn.cc.

Referenced by asHandleReply(), and asnCacheStart().

◆ asnStats

OBJH asnStats
static

Definition at line 128 of file Asn.cc.

Referenced by asnRegisterWithCacheManager().

◆ squid_max_keylen

SQUIDCEXTERN int squid_max_keylen

Definition at line 192 of file Asn.cc.

Referenced by asnInit().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors