Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1241061

Summary: glibc doesn't provide definitions needed to support rfc3542 IPv6 socket properties
Product: [Fedora] Fedora Reporter: Nikos Mavrogiannopoulos <nmavrogi>
Component: glibcAssignee: Carlos O'Donell <codonell>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: arjun.is, codonell, fweimer, jakub, law, pfrankli, spoyarek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glibc-2.21-7.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-16 02:33:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nikos Mavrogiannopoulos 2015-07-08 11:24:43 UTC
Description of problem:
glibc doesn't provide definitions needed to support standard (rfc3542) IPV6 socket properties. For example to obtain the MTU value of the path, the IPV6_PATHMTU option to getsockopt() can be used. This is supported by the Linux kernel but not by glibc.



How reproducible:
Compile the following program.
#define _GNU_SOURCE
#include <unistd.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>

int main()
{
struct ip6_mtuinfo mtuinfo;
socklen_t len;

getsockopt(1, IPPROTO_IPV6, IPV6_PATHMTU, &mtuinfo, &len);

return 0;
}


Actual results:
Fails because IPV6_PATHMTU is undefined.

Expected results:
Compilation should complete.

Additional info:
A bug report and a fix was posted in Debian:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=753909

Comment 1 Carlos O'Donell 2015-07-08 15:06:19 UTC
Fixed upstream.

commit 1c1e3125206ef810dc7282023f6267a33b486233
Author: Carlos O'Donell <carlos>
Date:   Wed Jul 8 09:26:45 2015 -0400

    Add missing Advanced API (RFC3542) (1) defines.
    
    Fixes bug 18643.
    
    Defines IPV6_RECVPATHMTU, IPV6_PATHMTU, and IPV6_DONTFRAG for Linux.

Comment 2 Nikos Mavrogiannopoulos 2015-07-08 15:07:30 UTC
Thanks.

Comment 3 Fedora Update System 2015-07-08 19:06:25 UTC
glibc-2.21-7.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/glibc-2.21-7.fc22

Comment 4 Fedora Update System 2015-07-13 19:15:50 UTC
Package glibc-2.21-7.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing glibc-2.21-7.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-11443/glibc-2.21-7.fc22
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2015-07-16 02:33:38 UTC
glibc-2.21-7.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.