]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
debugging for WCCP packets in wccpHandleUdp()
authorwessels <>
Thu, 28 Mar 2002 01:00:55 +0000 (01:00 +0000)
committerwessels <>
Thu, 28 Mar 2002 01:00:55 +0000 (01:00 +0000)
src/wccp.cc

index a6d815a8a396994ba7f0fbd6a41d0add63e25243..3f2a2f2924e09d0464d48ce4e08c78421d86b268 100644 (file)
@@ -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)