getifaddrs.3, rtnetlink.7: stats interface is struct rtnl_link_stats, not net_device_stats
PATCH 1/1 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 <[email protected]>
--- man3/getifaddrs.3 | 4 ++-- man7/rtnetlink.7 | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-)
man3/getifaddrs.3 +2 -2
@@ -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
man7/rtnetlink.7 +3 -1
@@ -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
Signature · 6 lines
1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html