From: phk Date: Wed, 6 Sep 2006 22:09:32 +0000 (+0000) Subject: Don't use binary address anyway, we only want the IP number part X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bb58a12b9d00c62f4639bcf92af22cf02247f30;p=varnish 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. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@935 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_session.c b/varnish-cache/bin/varnishd/cache_session.c index 46c9698d..2937fc2c 100644 --- a/varnish-cache/bin/varnishd/cache_session.c +++ b/varnish-cache/bin/varnishd/cache_session.c @@ -69,7 +69,7 @@ SES_RefSrcAddr(struct sess *sp) 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);