Re: ipcacheAddEntryFromHosts - problem with ip6 info in /etc/hosts

From: Henrik Nordström <hno@dont-contact.us>
Date: Wed, 31 Oct 2001 01:14:40 +0100

On Wednesday 31 October 2001 01.13, Roger Venning wrote:

> Currently the IPv6 squid work doesn't have sufficient smarts to verify
> for sure that a given IPv6 address is valid (there are a lot of formats,
> eg. ffoo::, fec0::1, 2002:0123:34:2352::239:abcd,
> 2002:314::123.123.123.123...), it merely relies on the system libraries,
> but unless compiled on a recent O/S with --enable-ipv6 we can't rely on
> that being in place... I agree though, a slightly changed message is of
> dubious value. I'll see how much code it comes to in order to
> exhaustively conclude that the address is a safe IPv6 address.

Question: Does all of the formats include at least one or more ':'?

If so, assuming that addresses having ':' in them and only consists of valid
characters are IPv6 is a good enough check for me for moving the message to
log level 2.

Regards
Henrik
Received on Tue Oct 30 2001 - 17:18:14 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:14:36 MST