Bug#484477: bug closed
On Thu, Jun 05, 2008 at 10:08:53AM +0200, Salvo Tomaselli wrote:
> If inet_ntop is not buggy, then inet_pton is.
Wrong.
> Since it returns 0 (0 is returned if src does not contain a character
> string representing a valid network address in the specified address
> family.) when i try to convert
>
> ::ffff:151.97.56.250:
This is not a valid IPv6 address. It should not have a colon at the end
of the address.
> using the following code
>
> if (inet_pton(AF_INET6,ip,&locAddr.sin6_addr)==0) {
> printf("Invalid IP address: %s\n",ip);
> exit(2);
> }
>
> it exits.
>
> --
> Salvo Tomaselli
>
> ________________________________________
> / La Teoria e' quando si sa tutto ma non \
> | funziona niente; la Pratica e' quando |
> | tutto funziona ma nessuno sa perche'. |
> | Qui da noi, Teoria e Pratica si sono |
> | fuse: non c'e' niente che funzioni e |
> \ nessuno ne capisce il motivo. /
> ----------------------------------------
> \ ^__^
> \ (oo)\_______
> (__)\ )\/\
> ||----w |
> || ||
>
>
>
> --
> To UNSUBSCRIBE, email to debian-glibc-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' aurel32@debian.org | aurelien@aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net
Reply to: