[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#484477: bug closed



If inet_ntop is not buggy, then inet_pton is.
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:

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 |
                ||     ||



Reply to: