From 5a81730f4150c39a0c0034eaf55a45462dfc78c2 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 28 Jun 2003 08:26:43 +0000 Subject: Update. 2003-06-25 Alfred M. Szmidt * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros. (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them. * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix. --- ChangeLog | 7 +++++++ bits/in.h | 6 ++++-- sysdeps/generic/bits/in.h | 6 ++++-- sysdeps/generic/ifreq.h | 4 ++-- 4 files changed, 17 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 126dc38..64c1146 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2003-06-25 Alfred M. Szmidt + + * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros. + (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them. + + * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix. + 2003-06-04 Thorsten Kukuk * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header, diff --git a/bits/in.h b/bits/in.h index f94a41b..a510382 100644 --- a/bits/in.h +++ b/bits/in.h @@ -64,8 +64,8 @@ struct ip_mreq /* IPV6 socket options. */ #define IPV6_ADDRFORM 1 #define IPV6_RXINFO 2 -#define IPV6_RXHOPOPTS 3 -#define IPV6_RXDSTOPTS 4 +#define IPV6_HOPOPTS 3 +#define IPV6_DSTOPTS 4 #define IPV6_RTHDR 5 #define IPV6_PKTOPTIONS 6 #define IPV6_CHECKSUM 7 @@ -85,6 +85,8 @@ struct ip_mreq /* Obsolete synonyms for the above. */ #define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP #define IPV6_DROP_MEMBERSHIP IPV6_LEAVE_GROUP +#define IPV6_RXHOPOPTS IPV6_HOPOPTS +#define IPV6_RXDSTOPTS IPV6_DSTOPTS /* Routing header options for IPv6. */ #define IPV6_RTHDR_LOOSE 0 /* Hop doesn't need to be neighbour. */ diff --git a/sysdeps/generic/bits/in.h b/sysdeps/generic/bits/in.h index f94a41b..a510382 100644 --- a/sysdeps/generic/bits/in.h +++ b/sysdeps/generic/bits/in.h @@ -64,8 +64,8 @@ struct ip_mreq /* IPV6 socket options. */ #define IPV6_ADDRFORM 1 #define IPV6_RXINFO 2 -#define IPV6_RXHOPOPTS 3 -#define IPV6_RXDSTOPTS 4 +#define IPV6_HOPOPTS 3 +#define IPV6_DSTOPTS 4 #define IPV6_RTHDR 5 #define IPV6_PKTOPTIONS 6 #define IPV6_CHECKSUM 7 @@ -85,6 +85,8 @@ struct ip_mreq /* Obsolete synonyms for the above. */ #define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP #define IPV6_DROP_MEMBERSHIP IPV6_LEAVE_GROUP +#define IPV6_RXHOPOPTS IPV6_HOPOPTS +#define IPV6_RXDSTOPTS IPV6_DSTOPTS /* Routing header options for IPv6. */ #define IPV6_RTHDR_LOOSE 0 /* Hop doesn't need to be neighbour. */ diff --git a/sysdeps/generic/ifreq.h b/sysdeps/generic/ifreq.h index 6e01fb4..73340d4 100644 --- a/sysdeps/generic/ifreq.h +++ b/sysdeps/generic/ifreq.h @@ -28,8 +28,8 @@ static inline struct ifreq * __if_nextreq (struct ifreq *ifr) { #ifdef _HAVE_SA_LEN - if (ifr->ifa_addr > sizeof ifr->ifa_addr) - return (struct ifreq *) ((char *) &ifr->ifa_addr + ifr->ifa_addr.sa_len); + if (ifr->ifr_addr.sa_len > sizeof ifr->ifr_addr) + return (struct ifreq *) ((char *) &ifr->ifr_addr + ifr->ifr_addr.sa_len); #endif return ifr + 1; } -- cgit v1.1