This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.21-119-gcb43bb0
- From: vapier at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 25 Feb 2015 05:13:40 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.21-119-gcb43bb0
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via cb43bb0d68f001fc3d6e054d712ab8794b5fd1de (commit)
from 9be1052b6f7583fad365643169cfc6732c96aee3 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=cb43bb0d68f001fc3d6e054d712ab8794b5fd1de
commit cb43bb0d68f001fc3d6e054d712ab8794b5fd1de
Author: Cong Wang <xiyou.wangcong@gmail.com>
Date: Tue Jan 6 16:13:19 2015 -0800
in.h: Coordinate in6_pktinfo and ip6_mtuinfo for kernel and glibc [BZ #15850]
Similarly to what we did for in6_addr, we need a macro
to guard in6_pktinfo and ip6_mtuinfo too.
Cc: Carlos O'Donell <carlos@redhat.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
diff --git a/ChangeLog b/ChangeLog
index 76ad507..e13f9f9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2015-02-25 Cong Wang <xiyou.wangcong@gmail.com>
+
+ [BZ #15850]
+ * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
+ and ip6_mtuinfo definitions here.
+ * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
+ in this define too. Update comment.
+
2015-02-24 Benno Schulenberg <bensberg@justemail.net>
* elf/sprof.c (load_shobj): Tweak error message to match others.
diff --git a/inet/netinet/in.h b/inet/netinet/in.h
index bf3c8b1..f541c58 100644
--- a/inet/netinet/in.h
+++ b/inet/netinet/in.h
@@ -530,6 +530,7 @@ extern int bindresvport6 (int __sockfd, struct sockaddr_in6 *__sock_in)
#ifdef __USE_GNU
struct cmsghdr; /* Forward declaration. */
+#ifndef __USE_KERNEL_IPV6_DEFS
/* IPv6 packet information. */
struct in6_pktinfo
{
@@ -543,7 +544,7 @@ struct ip6_mtuinfo
struct sockaddr_in6 ip6m_addr; /* dst address including zone ID */
uint32_t ip6m_mtu; /* path MTU in host byte order */
};
-
+#endif /* !__USE_KERNEL_IPV6_DEFS */
/* Obsolete hop-by-hop and Destination Options Processing (RFC 2292). */
extern int inet6_option_space (int __nbytes)
diff --git a/sysdeps/unix/sysv/linux/bits/in.h b/sysdeps/unix/sysv/linux/bits/in.h
index b80a27f..b1d2cf6 100644
--- a/sysdeps/unix/sysv/linux/bits/in.h
+++ b/sysdeps/unix/sysv/linux/bits/in.h
@@ -23,10 +23,10 @@
/* If the application has already included linux/in6.h from a linux-based
kernel then we will not define the IPv6 IPPROTO_* defines, in6_addr (nor the
- defines), sockaddr_in6, or ipv6_mreq. The ABI used by the linux-kernel and
- glibc match exactly. Neither the linux kernel nor glibc should break this
- ABI without coordination. */
-#ifdef _UAPI_LINUX_IN6_H
+ defines), sockaddr_in6, or ipv6_mreq. Same for in6_ptkinfo or ip6_mtuinfo
+ in linux/ipv6.h. The ABI used by the linux-kernel and glibc match exactly.
+ Neither the linux kernel nor glibc should break this ABI without coordination. */
+#if defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
/* This is not quite the same API since the kernel always defines s6_addr16 and
s6_addr32. This is not a violation of POSIX since POSIX says "at least the
following member" and that holds true. */
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 8 ++++++++
inet/netinet/in.h | 3 ++-
sysdeps/unix/sysv/linux/bits/in.h | 8 ++++----
3 files changed, 14 insertions(+), 5 deletions(-)
hooks/post-receive
--
GNU C Library master sources