Simon Paillard | 23 Jul 2012 22:12
Picon
Favicon

[PATCH] getifaddrs.3, rtnetlink.7: stats interface is struct rtnl_link_stats, not net_device_stats

Bug-Debian: http://bugs.debian.org/526778
Author: Julien Cristau <jcristau@...>
---
 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
 <at>  <at>  -191,9 +191,9  <at>  <at>  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
 <at>  <at>  -14,6 +14,8  <at>  <at>  rtnetlink \- Linux IPv4 routing socket
 .SH SYNOPSIS
 .B #include <asm/types.h>
(Continue reading)


Gmane