--------------------- PatchSet 8787 Date: 2006/12/03 07:35:45 Author: adri Branch: s26_wccp2 Tag: (none) Log: Add in some further debugging. Members: src/wccp2.c:1.26.2.1->1.26.2.2 Index: squid/src/wccp2.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/wccp2.c,v retrieving revision 1.26.2.1 retrieving revision 1.26.2.2 diff -u -r1.26.2.1 -r1.26.2.2 --- squid/src/wccp2.c 3 Dec 2006 05:45:25 -0000 1.26.2.1 +++ squid/src/wccp2.c 3 Dec 2006 07:35:45 -0000 1.26.2.2 @@ -1,6 +1,6 @@ /* - * $Id: wccp2.c,v 1.26.2.1 2006/12/03 05:45:25 adri Exp $ + * $Id: wccp2.c,v 1.26.2.2 2006/12/03 07:35:45 adri Exp $ * * DEBUG: section 80 WCCP Support * AUTHOR: Steven WIlton @@ -1791,6 +1791,8 @@ uint32_t tmp; int num_seen_routers = service_get_num_seen_routers(sl); + debug(80, 3) ("wccp2_out_add_hash_assignment_info: service %p; beginning for router %s\n", sl, inet_ntoa(rl->router_address)); + /* Assignment header */ ah.type = htons(WCCP2_REDIRECT_ASSIGNMENT); /* XXX I really, really hate magic numbers! */ @@ -1829,6 +1831,7 @@ wccp2_out_packet_append(p, &cache_list_ptr->cache_ip, sizeof(struct in_addr)); total_weight += cache_list_ptr->weight << 12; weight[cache] = cache_list_ptr->weight << 12; + debug(80, 5) ("hash_assignment: cache %d (%s); weight %lu; total weight %lu\n", cache, inet_ntoa(cache_list_ptr->cache_ip), weight[cache], total_weight); } }