--------------------- PatchSet 4001 Date: 2007/01/24 00:41:18 Author: amosjeffries Branch: squid3-ipv6 Tag: (none) Log: Fixed logic error in PTR creation. Members: lib/rfc1035.c:1.5.2.7->1.5.2.8 Index: squid3/lib/rfc1035.c =================================================================== RCS file: /cvsroot/squid-sf//squid3/lib/rfc1035.c,v retrieving revision 1.5.2.7 retrieving revision 1.5.2.8 diff -u -r1.5.2.7 -r1.5.2.8 --- squid3/lib/rfc1035.c 7 Jan 2007 22:06:02 -0000 1.5.2.7 +++ squid3/lib/rfc1035.c 24 Jan 2007 00:41:18 -0000 1.5.2.8 @@ -1,6 +1,6 @@ /* - * $Id: rfc1035.c,v 1.5.2.7 2007/01/07 22:06:02 amosjeffries Exp $ + * $Id: rfc1035.c,v 1.5.2.8 2007/01/24 00:41:18 amosjeffries Exp $ * * Low level DNS protocol routines * AUTHOR: Duane Wessels @@ -717,15 +717,16 @@ "%x.%x.%x.%x." "ip6.arpa." , - r[31], r[30], r[29], r[28], - r[27], r[26], r[25], r[24], - r[23], r[22], r[21], r[20], - r[19], r[18], r[17], r[16], - r[15], r[14], r[13], r[12], - r[11], r[10], r[9], r[8], - r[7], r[6], r[5], r[4], - r[3], r[2], r[1], r[0] + (r[15])&0xf0, (r[15])&0x0f, (r[14])&0xf0, (r[14])&0x0f, + (r[13])&0xf0, (r[13])&0x0f, (r[12])&0xf0, (r[12])&0x0f, + (r[11])&0xf0, (r[11])&0x0f, (r[10])&0xf0, (r[10])&0x0f, + (r[9])&0xf0, (r[9])&0x0f, (r[8])&0xf0, (r[8])&0x0f, + (r[7])&0xf0, (r[7])&0x0f, (r[6])&0xf0, (r[6])&0x0f, + (r[5])&0xf0, (r[5])&0x0f, (r[4])&0xf0, (r[4])&0x0f, + (r[3])&0xf0, (r[3])&0x0f, (r[2])&0xf0, (r[2])&0x0f, + (r[1])&0xf0, (r[1])&0x0f, (r[0])&0xf0, (r[0])&0x0f, ); + /* FIXME Test this. I have a suspicion teh 0xf0 should also be shifted >>4 */ /* TODO: * Should also attempt to do the A6 query at some point.