aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2012-11-11 13:02:28 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2012-11-11 13:02:28 +0100
commitbbeb81bdf33f096fce00d9c1eca65ecfe13acdbb (patch)
tree378bc1d5d7ccaaacf0f7a703d0043b8141d405c3
parent3036baf00ee7f7ba4c8dcccd12b131a832ccdf61 (diff)
downloadman-pages-bbeb81bdf33f096fce00d9c1eca65ecfe13acdbb.tar.gz
getifaddrs.3: Update description of ifa_data to Linux 2.6+ reality
See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=526778 Reported-by: Julien Cristau <jcristau@debian.org> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man3/getifaddrs.38
1 files changed, 6 insertions, 2 deletions
diff --git a/man3/getifaddrs.3 b/man3/getifaddrs.3
index e33928817e..318ff8a288 100644
--- a/man3/getifaddrs.3
+++ b/man3/getifaddrs.3
@@ -30,7 +30,7 @@
.\" for glibc specificities, provide an example.
.\" 2009-01-14 mtk, many edits and changes, rewrote example program.
.\"
-.TH GETIFADDRS 3 2012-07-07 "GNU" "Linux Programmer's Manual"
+.TH GETIFADDRS 3 2012-11-11 "GNU" "Linux Programmer's Manual"
.SH NAME
getifaddrs, freeifaddrs \- get interface addresses
.SH SYNOPSIS
@@ -193,9 +193,13 @@ and its physical layer.
In this case, the
.I ifa_data
field may contain a pointer to a
+.IR "struct rtnl_link_stats" ,
+defined in
+.IR <linux/if_link.h>
+(in Linux 2.4 and earlier,
.IR "struct net_device_stats" ,
defined in
-.IR <linux/netdevice.h> ,
+.IR <linux/netdevice.h> ),
which contains various interface attributes and statistics.
.SH EXAMPLE
The program below demonstrates the use of