Bug#753909: libc6-dev: netinet/in.h lacks several IPv6 socket options
Package: libc6-dev
Version: 2.13-38+deb7u1
Severity: normal
Tags: upstream ipv6 patch
Dear Maintainer,
I am writing a daemon program which uses IPv6 socket options specified
in RFC 3542, and found some are not defined in <netinet/in.h> but in
<linux/in6.h>.
I tried to include <linux/in6.h> but it conflicted with <netinet/in.h>
so I had to copy the definition into my program.
This problem also applies to the upstream version. A patch for the
glibc source code (version 2.19) is included below.
--- sysdeps/unix/sysv/linux/bits/in.h 2014-07-06 11:02:37+09 1.1
+++ sysdeps/unix/sysv/linux/bits/in.h 2014-07-06 11:03:33+09
@@ -175,6 +175,9 @@
#define IPV6_RTHDR 57
#define IPV6_RECVDSTOPTS 58
#define IPV6_DSTOPTS 59
+#define IPV6_RECVPATHMTU 60
+#define IPV6_PATHMTU 61
+#define IPV6_DONTFRAG 62
#define IPV6_RECVTCLASS 66
#define IPV6_TCLASS 67
-- System Information:
Debian Release: 7.5
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages libc6-dev depends on:
ii libc-dev-bin 2.13-38+deb7u1
ii libc6 2.13-38+deb7u1
ii linux-libc-dev 3.2.57-3+deb7u2
Versions of packages libc6-dev recommends:
ii gcc [c-compiler] 4:4.7.2-1
ii gcc-4.6 [c-compiler] 4.6.3-14
ii gcc-4.7 [c-compiler] 4.7.2-5
Versions of packages libc6-dev suggests:
ii glibc-doc 2.13-38+deb7u1
ii manpages-dev 3.44-1
-- no debconf information
--- sysdeps/unix/sysv/linux/bits/in.h 2014-07-06 11:02:37+09 1.1
+++ sysdeps/unix/sysv/linux/bits/in.h 2014-07-06 11:03:33+09
@@ -175,6 +175,9 @@
#define IPV6_RTHDR 57
#define IPV6_RECVDSTOPTS 58
#define IPV6_DSTOPTS 59
+#define IPV6_RECVPATHMTU 60
+#define IPV6_PATHMTU 61
+#define IPV6_DONTFRAG 62
#define IPV6_RECVTCLASS 66
#define IPV6_TCLASS 67
Reply to: