src/acl/Asn.cc File Reference

#include "squid.h"
#include "CacheManager.h"
#include "radix.h"
#include "HttpRequest.h"
#include "StoreClient.h"
#include "Store.h"
#include "acl/Acl.h"
#include "acl/Asn.h"
#include "acl/Checklist.h"
#include "acl/SourceAsn.h"
#include "acl/DestinationAsn.h"
#include "acl/DestinationIp.h"
#include "HttpReply.h"
#include "forward.h"
#include "wordlist.h"
Include dependency graph for Asn.cc:

Go to the source code of this file.

Classes

class  m_ADDR
struct  as_info
struct  ASState
struct  rtentry_t

Defines

#define WHOIS_PORT   43
#define AS_REQBUF_SZ   4096

Functions

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 asStateFree (void *data)
static void destroyRadixNodeInfo (as_info *)
int asnMatchIp (CbDataList< int > *data, Ip::Address &addr)
static void asnRegisterWithCacheManager (void)
 CBDATA_TYPE (ASState)
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

Define Documentation

#define AS_REQBUF_SZ   4096

Definition at line 53 of file Asn.cc.

Referenced by asHandleReply(), and asnCacheStart().

#define WHOIS_PORT   43

Definition at line 52 of file Asn.cc.


Function Documentation

void asnAclInitialize ( ACL acls  ) 
static int asnAddNet ( char *  as_string,
int  as_number 
) [static]
int asnMatchIp ( CbDataList< int > *  data,
Ip::Address &  addr 
)
static void asnRegisterWithCacheManager ( void   )  [static]

Definition at line 190 of file Asn.cc.

References asnStats, CacheManager::GetInstance(), and CacheManager::registerAction().

Referenced by asnInit().

static void asnStats ( StoreEntry sentry  )  [static]

Definition at line 224 of file Asn.cc.

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

static void asStateFree ( void *  data  )  [static]
CBDATA_TYPE ( ASState   ) 
static int destroyRadixNode ( struct squid_radix_node rn,
void *  w 
) [static]
static void destroyRadixNodeInfo ( as_info e_info  )  [static]

Definition at line 501 of file Asn.cc.

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

Referenced by destroyRadixNode().

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

Variable Documentation

Definition at line 72 of file Asn.cc.

STCB asHandleReply [static]

Definition at line 113 of file Asn.cc.

Referenced by asHandleReply(), and asnCacheStart().

OBJH asnStats [static]

Definition at line 133 of file Asn.cc.

Referenced by asnRegisterWithCacheManager().

SQUIDCEXTERN int squid_max_keylen

Definition at line 197 of file Asn.cc.

Search

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors