
Classes | |
class | ICP2State |
Functions | |
static void | icpLogIcp (const Ip::Address &caddr, const LogTags_ot logcode, const int len, const char *url, int delay, AccessLogEntry::Pointer &al) |
updates ALE (if any) and logs the transaction (if needed) More... | |
static void | icpHandleIcpV2 (int, Ip::Address &, char *, int) |
static void | icpCount (void *, int, size_t, int) |
static void | icpUdpSendQueue (int fd, void *) |
Variables | |
static DelayedUdpSend * | IcpQueueHead = NULL |
static DelayedUdpSend * | IcpQueueTail = NULL |
Comm::ConnectionPointer | icpIncomingConn = NULL |
Comm::ConnectionPointer | icpOutgoingConn = NULL |
Detailed Description
Function Documentation
◆ icpCount()
Definition at line 815 of file icp_v2.cc.
References StatHist::count(), StatCounters::hits_recv, StatCounters::hits_sent, StatCounters::icp, ICP_HIT, ICP_QUERY, StatCounters::kbytes_recv, StatCounters::kbytes_sent, icp_common_t::opcode, StatCounters::pkts_recv, StatCounters::pkts_sent, StatCounters::q_kbytes_recv, StatCounters::q_kbytes_sent, StatCounters::queries_recv, StatCounters::queries_sent, StatCounters::r_kbytes_recv, StatCounters::r_kbytes_sent, RECV, StatCounters::replies_recv, StatCounters::replies_sent, StatCounters::replySvcTime, SENT, and statCounter.
Referenced by icpHandleUdp(), and icpUdpSend().
◆ icpHandleIcpV2()
|
static |
Definition at line 556 of file icp_v2.cc.
References DBG_CRITICAL, debugs, doV2Query(), icp_common_t::getOpCode(), icp_common_t::handleReply(), ICP_DECHO, ICP_DENIED, ICP_ERR, ICP_HIT, ICP_INVALID, ICP_MISS, ICP_MISS_NOFETCH, icp_opcode_str, ICP_QUERY, icp_common_t::length, and icp_common_t::opcode.
Referenced by icpHandleUdp().
◆ icpLogIcp()
|
static |
Definition at line 224 of file icp_v2.cc.
References accessLogLog(), assert, clientdbUpdate(), Config, icpSyncAle(), LOG_ICP_QUERY, LOG_TAG_NONE, SquidConfig::log_udp, NULL, SquidConfig::onoff, and AnyP::PROTO_ICP.
Referenced by icpUdpSend().
◆ icpUdpSendQueue()
|
static |
Definition at line 253 of file icp_v2.cc.
References DelayedUdpSend::address, DelayedUdpSend::ale, current_time, IcpQueueHead, icpUdpSend(), DelayedUdpSend::msg, DelayedUdpSend::next, NULL, DelayedUdpSend::queue_time, and tvSubUsec().
Referenced by icpUdpSend().
Variable Documentation
◆ icpIncomingConn
Comm::ConnectionPointer icpIncomingConn = NULL |
Definition at line 98 of file icp_v2.cc.
Referenced by comm_poll_udp_incoming(), comm_select_udp_incoming(), fdIsUdpListen(), fdIsUdpListener(), icpConnectionShutdown(), icpOpenPorts(), mcastJoinGroups(), neighbors_init(), and neighborsRegisterWithCacheManager().
◆ icpOutgoingConn
Comm::ConnectionPointer icpOutgoingConn = NULL |
Definition at line 100 of file icp_v2.cc.
Referenced by icpClosePorts(), icpConnectionShutdown(), icpHandleUdp(), icpIncomingConnectionOpened(), and icpOpenPorts().
◆ IcpQueueHead
|
static |
IcpQueueHead is global so comm_incoming() knows whether or not to call icpUdpSendQueue.
Definition at line 93 of file icp_v2.cc.
Referenced by icpUdpSend(), and icpUdpSendQueue().
◆ IcpQueueTail
|
static |
Definition at line 95 of file icp_v2.cc.
Referenced by icpUdpSend().