Mailing List Archive

r935 - trunk/varnish-cache/bin/varnishd
Author: phk
Date: 2006-09-07 00:09:32 +0200 (Thu, 07 Sep 2006)
New Revision: 935

Modified:
trunk/varnish-cache/bin/varnishd/cache_session.c
Log:
Don't use binary address anyway, we only want the IP number part
and splitting that out of the binary part is not worth the
trouble.


Modified: trunk/varnish-cache/bin/varnishd/cache_session.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_session.c 2006-09-06 22:02:07 UTC (rev 934)
+++ trunk/varnish-cache/bin/varnishd/cache_session.c 2006-09-06 22:09:32 UTC (rev 935)
@@ -69,7 +69,7 @@
time_t now;

AZ(sp->srcaddr);
- u = crc32_l(sp->sockaddr, sp->sockaddrlen);
+ u = crc32_2s(sp->addr, "");
v = u % CLIENT_HASH;
ch = &srcaddr_hash[v];
now = time(NULL);