From 5a515ac524b4c600485971b2bfdcedb375495293 Mon Sep 17 00:00:00 2001 From: Stephane Bortzmeyer Date: Fri, 11 Oct 2002 12:13:58 +0000 Subject: [PATCH] Just cosmetic --- SRC/echoping.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/SRC/echoping.c b/SRC/echoping.c index 7ba9ffc..850f98d 100644 --- a/SRC/echoping.c +++ b/SRC/echoping.c @@ -505,8 +505,18 @@ main (argc, argv) } else { - /* TODO: we should be able to create a ICP hostid for IPv6 addresses... */ + + /* TODO: we should be able to create a ICP hostid for IPv6 addresses... + See the Squid IPv6 patch at + http://devel.squid-cache.org/projects.html#ipv6, for instance the + following code. */ sendline = make_icp_sendline (url, (void *) NULL, opcode, &length); + /* + - headerp->shostid = theOutICPAddr.s_addr; + + ** FIXME ** we should get more unique data from IPv6 address + +xmemcpy (&headerp->shostid, &theOutICPAddr, + sizeof (headerp->shostid)); + */ } } else @@ -1048,7 +1058,7 @@ main (argc, argv) recvline[strlen (sendline)] = 0; if (strcmp (sendline, recvline) != 0) { - /* Todo: it does not work if the size is lower than the + /* TODO: it does not work if the size is lower than the length of CHARGENERATED */ printf (" I got back:\n%s\n", recvline); printf (" instead of the most common:\n%s\n", sendline);