From: wessels <> Date: Thu, 28 Mar 2002 01:00:55 +0000 (+0000) Subject: debugging for WCCP packets in wccpHandleUdp() X-Git-Tag: SQUID_3_0_PRE1~1161 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2a4289a689f7184503ce6c60552bf673da0a990;p=thirdparty%2Fsquid.git debugging for WCCP packets in wccpHandleUdp() --- diff --git a/src/wccp.cc b/src/wccp.cc index a6d815a8a3..3f2a2f2924 100644 --- a/src/wccp.cc +++ b/src/wccp.cc @@ -1,6 +1,6 @@ /* - * $Id: wccp.cc,v 1.19 2001/02/17 07:30:44 hno Exp $ + * $Id: wccp.cc,v 1.20 2002/03/27 18:00:55 wessels Exp $ * * DEBUG: section 80 WCCP Support * AUTHOR: Glenn Chisholm @@ -225,6 +225,14 @@ wccpHandleUdp(int sock, void *not_used) 0, (struct sockaddr *) &from, &from_len); + debug(80, 3) ("wccpHandleUdp: %d bytes WCCP pkt from %s: type=%d, version=%d, change=%d, id=%d, number=%d\n", + len, + inet_ntoa(from.sin_addr), + ntohl(wccp_i_see_you.type), + ntohl(wccp_i_see_you.version), + ntohl(wccp_i_see_you.change), + ntohl(wccp_i_see_you.id), + ntohl(wccp_i_see_you.number)); if (len < 0) return; if (Config.Wccp.router.s_addr != from.sin_addr.s_addr)