From 4bb58a12b9d00c62f4639bcf92af22cf02247f30 Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 6 Sep 2006 22:09:32 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishd/cache_session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5