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 - glibc doesn't provide definitions needed to support rfc3542 IPv6 socket properties
Summary: glibc doesn't provide definitions needed to support rfc3542 IPv6 socket prope...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Carlos O'Donell
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-08 11:24 UTC by Nikos Mavrogiannopoulos
Modified: 2016-11-24 12:18 UTC (History)
7 users (show)

Fixed In Version: glibc-2.21-7.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-07-16 02:33:38 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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