Squid IPv6 2.6.STABLE13
12 May 2007
Following the release of Squid 2.6.STABLE13, I release a patch that can be downloaded here. This patch fixed two bugs on:
- dealing with IPv4-mapped IPv6 address, e.g.: ::ffff:10.20.30.40
- DNS queries using TCP if responses are truncated.
Applying the patch is as usual.
Masukkan Komentar
Harap isi form berikut untuk mengisi komentar
Hi, there’s a little bug that makes some log-messages unreadable…
Don’t know if it was introduced by your code, anyhow, here’s the fix:
diff -urNad squid-2.6.13~/src/comm.c squid-2.6.13/src/comm.c
— squid-2.6.13~/src/comm.c 2007-05-23 11:17:12.000000000 +0200
+++ squid-2.6.13/src/comm.c 2007-05-23 11:18:15.000000000 +0200
@@ -142,7 +142,7 @@
statCounter.syscalls.sock.binds++;
if (bind(s, S, SOCKLEN(S)) == 0)
return COMM_OK;
- getnameinfo(S, S->sa_family, hbuf, 80, sbuf, 8,
+ getnameinfo(S, SOCKLEN(S), hbuf, 80, sbuf, 8,
NI_NUMERICHOST|NI_NUMERICSERV);
debug(5, 0) (”commBind: Cannot bind socket FD %d to %s:%s: %s\n”,
s, hbuf, sbuf, xstrerror());
Regards, Felix
>>
Thank you for the patch.
I will include it in the next patch.
Configuration with –enable-arp-acl fails to compile.
$ ./configure –enable-arp-acl && make
…
acl.c: In function ‘aclMatchArp’:
acl.c:3238: error: incompatible type for argument 1 of ’sockaddr_ntoa’
>>
Sorry, I still haven’t been working on arp-acl.
I hope I can fix it in the next patch.
I have been using your patch with 4000 clients in a production network without any problems. Good job.
However I did find one oddity. Using
http_port 8000 defaultsite=media.tkukoulu.fi
cache_peer 192.103.98.18 parent 80 0 originserver no-query
Only ipv6 access works as it should. Ipv4 access fails with squid reporting “Invalid Request”.
When I separate the http_port-line to two lines everything works with both ipv4 and ipv6.
http_port [2001:670:aa::12]:8000 defaultsite=media.tkukoulu.fi
http_port 192.103.98.4:8000 defaultsite=media.tkukoulu.fi
cache_peer 192.103.98.18 parent 80 0 originserver no-query
>>
Thank you for your report.
I have to look into the code again.
G’day,
I’m one of the Squid project maintainers. Would you mind firing off an email to me so we can have a chat about your ipv6 work with Squid?
Thanks, and good work!