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

Bug#484477: wrong result from inet_ntop



Subject: libc6: wrong result from inet_ntop
Package: libc6
Version: 2.7-11
Severity: normal

*** Please type your report below this line ***
Hello,
am sending this report again because i had no feedback from the 1st sending.

executing this code:
inet_ntop(AF_INET6, &farAddr.sin6_addr, ip_addr, INET6_ADDRSTRLEN);

if the client is using an ipv4 address (this program is using both IPv4
and 6) the resulting string within ip_addr will be something like:
::ffff:151.97.56.12

The inet_ntop's man page says:
AF_INET6 converts IPv6-mapped IPv4 addresses into an IPv6 format.

I don't think that the resulting string is an IPv6. It is just neither
IPv4 nor IPv6.

Goodbye


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libc6 depends on:
ii  libgcc1                       1:4.3.0-5  GCC support library

libc6 recommends no packages.

-- debconf information:
  glibc/upgrade: true
  glibc/restart-failed:
  glibc/restart-services:



Reply to: