* [PATCH] getifaddrs.3, rtnetlink.7: stats interface is struct rtnl_link_stats, not net_device_stats
@ 2012-07-23 20:12 Simon Paillard
0 siblings, 0 replies; only message in thread
From: Simon Paillard @ 2012-07-23 20:12 UTC (permalink / raw)
To: linux-man-u79uwXL29TY76Z2rM5mHXA; +Cc: Simon Paillard
Bug-Debian: http://bugs.debian.org/526778
Author: Julien Cristau <jcristau-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org>
---
man3/getifaddrs.3 | 4 ++--
man7/rtnetlink.7 | 4 +++-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/man3/getifaddrs.3 b/man3/getifaddrs.3
index d2cf120..996593c 100644
--- a/man3/getifaddrs.3
+++ b/man3/getifaddrs.3
@@ -191,9 +191,9 @@ and its physical layer.
In this case, the
.I ifa_data
field may contain a pointer to a
-.IR "struct net_device_stats" ,
+.IR "struct rtnl_link_stats" ,
defined in
-.IR <linux/netdevice.h> ,
+.IR <linux/if_link.h> ,
which contains various interface attributes and statistics.
.SH EXAMPLE
The program below demonstrates the use of
diff --git a/man7/rtnetlink.7 b/man7/rtnetlink.7
index 3037737..a8e9e83 100644
--- a/man7/rtnetlink.7
+++ b/man7/rtnetlink.7
@@ -14,6 +14,8 @@ rtnetlink \- Linux IPv4 routing socket
.SH SYNOPSIS
.B #include <asm/types.h>
.br
+.B #include <linux/if_link.h>
+.br
.B #include <linux/netlink.h>
.br
.B #include <linux/rtnetlink.h>
@@ -102,7 +104,7 @@ T}:Interface Statistics.
.TE
.ad
.sp
-The value type for IFLA_STATS is \fIstruct net_device_stats\fP.
+The value type for IFLA_STATS is \fIstruct rtnl_link_stats\fP.
.TP
.BR RTM_NEWADDR ", " RTM_DELADDR ", " RTM_GETADDR
Add, remove or receive information about an IP address associated with
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-07-23 20:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-23 20:12 [PATCH] getifaddrs.3, rtnetlink.7: stats interface is struct rtnl_link_stats, not net_device_stats Simon Paillard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).