38 char *url = buf +
sizeof(
icp_common_t) +
sizeof(uint32_t);
74 debugs(12, 3,
"icpHandleIcpV3: ICP message is too small");
83 if (len != header.
length) {
84 debugs(12, 3,
"icpHandleIcpV3: ICP message is too small");
~ICP3State() override=default
ICP3State(icp_common_t &aHeader, HttpRequest *aRequest)
bool isHit() const
whether the cache contains the requested entry
void handleReply(char *buf, Ip::Address &from)
icp_opcode getOpCode() const
#define debugs(SECTION, LEVEL, CONTENT)
icp_opcode icpGetCommonOpcode()
void icpCreateAndSend(icp_opcode, int flags, char const *url, int reqnum, int pad, int fd, const Ip::Address &from, AccessLogEntryPointer)
bool icpAccessAllowed(Ip::Address &from, HttpRequest *icp_request)
void icpDenyAccess(Ip::Address &from, char *url, int reqnum, int fd)
HttpRequest * icpGetRequest(char *url, int reqnum, int fd, Ip::Address &from)
static void doV3Query(int fd, Ip::Address &from, char *buf, icp_common_t header)
void icpHandleIcpV3(int fd, Ip::Address &from, char *buf, int len)
const char * icp_opcode_str[]