Ident Namespace Reference

Ident Lookup API.

Classes

struct  _IdentClient
 
class  IdentConfig
 
class  IdentStateData
 

Typedefs

typedef struct Ident::_IdentClient IdentClient
 

Functions

 CBDATA_CLASS_INIT (IdentStateData)
 
static void ClientAdd (IdentStateData *state, IDCB *callback, void *callback_data)
 
void Start (const Comm::ConnectionPointer &conn, IDCB *callback, void *cbdata)
 
void Init (void)
 

Variables

IdentConfig TheConfig
 
static IOCB ReadReply
 
static IOCB WriteFeedback
 
static CLCB Close
 
static CTCB Timeout
 
static CNCB ConnectDone
 
static hash_tableident_hash = NULL
 

Typedef Documentation

◆ IdentClient

Function Documentation

◆ CBDATA_CLASS_INIT()

Ident::CBDATA_CLASS_INIT ( IdentStateData  )

◆ ClientAdd()

void Ident::ClientAdd ( IdentStateData state,
IDCB callback,
void *  callback_data 
)
static

◆ Init()

void Ident::Init ( void  )

Initialize IDENT lookup manager. Currently a hash list of open ident requests.

Definition at line 279 of file Ident.cc.

References DBG_CRITICAL, debugs, hash4, hash_create(), hashPrime(), ident_hash, and Squid_MaxFD.

Referenced by mainInitialize(), and Start().

◆ Start()

void Ident::Start ( const Comm::ConnectionPointer conn,
IDCB callback,
void *  cbdata 
)

Open a connection and request IDENT information from a peer machine. Callback will be called whan the lookup is completed. Self-registers with a global ident lookup manager, will call Ident::Init() itself if the manager has not been initialized already.

Definition at line 237 of file Ident.cc.

References Packable::appendf(), assert, callback, ClientAdd(), commCbCall(), Ident::IdentStateData::conn, conn, ConnectDone, data, Ident::IdentStateData::hash, hash_join(), hash_lookup(), ident_hash, IDENT_KEY_SZ, IDENT_PORT, MemBuf::init(), Init(), hash_link::key, Comm::Connection::local, NULL, Ip::Address::port(), Ident::IdentStateData::queryMsg, Comm::Connection::remote, AsyncJob::Start(), TheConfig, Ident::IdentConfig::timeout, type, and xstrdup.

Referenced by IdentLookup::checkForAsync(), Adaptation::Initiator::initiateAdaptation(), and ConnStateData::whenClientIpKnown().

Variable Documentation

◆ Close

void Ident::Close
static

Definition at line 65 of file Ident.cc.

Referenced by Log::TcpLogger::Open(), and Ident::IdentStateData::swanSong().

◆ ConnectDone

void Ident::ConnectDone
static

Definition at line 67 of file Ident.cc.

Referenced by Start().

◆ ident_hash

hash_table* Ident::ident_hash = NULL
static

Definition at line 68 of file Ident.cc.

Referenced by Init(), Start(), and Ident::IdentStateData::swanSong().

◆ ReadReply

void Ident::ReadReply
static

Definition at line 63 of file Ident.cc.

◆ TheConfig

Ident::IdentConfig Ident::TheConfig
extern

Definition at line 73 of file Ident.cc.

Referenced by Start(), and ConnStateData::whenClientIpKnown().

◆ Timeout

void Ident::Timeout
static

Definition at line 66 of file Ident.cc.

◆ WriteFeedback

void Ident::WriteFeedback
static

Definition at line 64 of file Ident.cc.

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors