[prev in list] [next in list] [prev in thread] [next in thread]
List: squid-cvs
Subject: squid3-ipv6 squid3/src comm.cc,1.47.2.31,1.47.2.32
From: Amos Jeffries <amosjeffries () users ! sourceforge ! net>
Date: 2007-05-31 10:39:13
Message-ID: 20070531103915.26855.qmail () squid-cache ! org
[Download RAW message or body]
Update of cvs.devel.squid-cache.org:/cvsroot/squid/squid3/src
Modified Files:
Tag: squid3-ipv6
comm.cc
Log Message:
Fix DNS send to IPv6 DNS Servers. Squid now speaks fluent DNS on IPv6.
Index: comm.cc
===================================================================
RCS file: /cvsroot/squid/squid3/src/comm.cc,v
retrieving revision 1.47.2.31
retrieving revision 1.47.2.32
diff -C2 -d -r1.47.2.31 -r1.47.2.32
*** comm.cc 28 May 2007 13:32:48 -0000 1.47.2.31
--- comm.cc 31 May 2007 10:39:09 -0000 1.47.2.32
***************
*** 888,891 ****
--- 888,895 ----
AI->ai_flags = flags;
+ debugs(50, 3, "comm_openex: Attempt open socket to/from : " << addr);
+ debugs(50, 3, "AYJ: protocol=" << AI->ai_protocol << " WANT=" << IPPROTO_TCP << \
" or " << IPPROTO_UDP ); + debugs(50, 3, "AYJ: protocol=" << AI->ai_socktype << " \
WANT=" << SOCK_STREAM); +
if ((new_socket = socket( AI->ai_family, AI->ai_socktype, AI->ai_protocol)) < \
0) {
***************
*** 1649,1652 ****
--- 1653,1657 ----
to_addr.GetAddrInfo(*AI); // MUST be first! resets AI.
+ // Hmm, these details are never used from here on!
AI->ai_protocol = IPPROTO_UDP;
AI->ai_socktype = SOCK_DGRAM;
***************
*** 1655,1658 ****
--- 1660,1668 ----
statCounter.syscalls.sock.sendtos++;
+ debugs(50, 3, "comm_udp_sendto: Attempt open socket to/from : " << to_addr);
+ debugs(50, 3, "AYJ: using FD " << fd << " using Port " << comm_local_port(fd) \
); + debugs(50, 3, "AYJ: protocol=" << AI->ai_protocol << " WANT=" << IPPROTO_UDP \
); + debugs(50, 3, "AYJ: socktype=" << AI->ai_socktype << " WANT=" << \
SOCK_DGRAM); +
x = sendto(fd, buf, len, 0, (struct sockaddr *)AI->ai_addr, AI->ai_addrlen);
PROF_stop(comm_udp_sendto);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic