about summary refs log tree commit diff
path: root/sysdeps/generic/ifreq.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-06-28 08:26:43 +0000
committerUlrich Drepper <drepper@redhat.com>2003-06-28 08:26:43 +0000
commit5a81730f4150c39a0c0034eaf55a45462dfc78c2 (patch)
tree655e4bcbebedecff3f4f55f4e9e0ebf133499375 /sysdeps/generic/ifreq.h
parent8d4d88bc9bd7aee105464b7a4ccac143b10158de (diff)
downloadglibc-5a81730f4150c39a0c0034eaf55a45462dfc78c2.tar.gz
glibc-5a81730f4150c39a0c0034eaf55a45462dfc78c2.tar.xz
glibc-5a81730f4150c39a0c0034eaf55a45462dfc78c2.zip
Update.
2003-06-25  Alfred M. Szmidt  <ams@kemisten.nu>

	* 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.
Diffstat (limited to 'sysdeps/generic/ifreq.h')
-rw-r--r--sysdeps/generic/ifreq.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/generic/ifreq.h b/sysdeps/generic/ifreq.h
index 6e01fb463e..73340d4c93 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;
 }