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

Bug#484321: marked as done (libc: wrong result from inet_ntop)



Your message dated Tue, 03 Jun 2008 23:32:28 +0200
with message-id <4845B86C.2020205@aurel32.net>
and subject line Re: Bug#484321: libc: wrong result from inet_ntop
has caused the Debian Bug report #484321,
regarding libc: wrong result from inet_ntop
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
484321: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=484321
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: libc6
Version: 2.7-11
Severity: normal
File: libc

Hello

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:



--- End Message ---
--- Begin Message ---
Salvo Tomaselli a écrit :
> Package: libc6
> Version: 2.7-11
> Severity: normal
> File: libc
> 
> Hello
> 
> 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.

It is an IPv6 address, see RFC4291.

-- 
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   aurel32@debian.org         | aurelien@aurel32.net
   `-    people.debian.org/~aurel32 | www.aurel32.net


--- End Message ---

Reply to: