Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 252139 - getnameinfo does not support ipv6
getnameinfo does not support ipv6
Product: Fedora
Classification: Fedora
Component: glibc (Show other bugs)
i386 Linux
low Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2007-08-14 03:05 EDT by Tomasz Kepczynski
Modified: 2007-11-30 17:12 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-08-14 03:33:49 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
getnameinfo test program (1.23 KB, text/x-csrc)
2007-08-14 03:05 EDT, Tomasz Kepczynski
no flags Details

  None (edit)
Description Tomasz Kepczynski 2007-08-14 03:05:03 EDT
Description of problem:
As in title. See output of attached test program.

Version-Release number of selected component (if applicable):

How reproducible:

Additional info:
I've seen this problem on fully updated FC6, on F7 and CENTOS5
(this means RHEL5 is affected).
Reproducible on both i386 and x86_64.
Comment 1 Tomasz Kepczynski 2007-08-14 03:05:03 EDT
Created attachment 161256 [details]
getnameinfo test program
Comment 2 Jakub Jelinek 2007-08-14 03:33:49 EDT
User error.  You should pass a->ai_addrlen as second argument to getnameinfo,
sizeof (*a->ai_addr) is big enough for IPv4, but not for IPv6.
On Linux
sizeof (struct sockaddr) == sizeof (struct sockaddr_in) == 16,
but sizeof (struct sockaddr_in6) == 28 and some other struct sockaddr_* are
even bigger.

Note You need to log in before you can comment on or make changes to this bug.