]> git.ipfire.org Git - thirdparty/libnl.git/commitdiff
Add support for per interface ICMPv6 statistics
authorThomas Graf <tgraf@suug.ch>
Thu, 11 Nov 2010 22:14:57 +0000 (23:14 +0100)
committerThomas Graf <tgraf@suug.ch>
Thu, 11 Nov 2010 22:14:57 +0000 (23:14 +0100)
include/netlink/route/link.h
lib/route/link.c

index 194935341c3d85c0048262dc3c81ead24b494e43..6b0b45c6a9c0341d6f3da2dd8fc0a7071958b910 100644 (file)
@@ -76,6 +76,10 @@ enum rtnl_link_st {
        RTNL_LINK_OUTMCASTOCTETS,               /* OutMcastOctets */
        RTNL_LINK_INBCASTOCTETS,                /* InBcastOctets */
        RTNL_LINK_OUTBCASTOCTETS,               /* OutBcastOctets */
+       RTNL_LINK_ICMP6_INMSGS,                 /* InMsgs */
+       RTNL_LINK_ICMP6_INERRORS,               /* InErrors */
+       RTNL_LINK_ICMP6_OUTMSGS,                /* OutMsgs */
+       RTNL_LINK_ICMP6_OUTERRORS,              /* OutErrors */
        __RTNL_LINK_STATS_MAX,
 };
 
index d54082ae98dcba6984202ee86e0a1ce5874e0e58..6e6460b59df70a23f13ae9e6ce2adb1273504cbd 100644 (file)
@@ -1258,6 +1258,10 @@ static struct trans_tbl link_stats[] = {
        __ADD(RTNL_LINK_OUTMCASTOCTETS, OutMcastOctets)
        __ADD(RTNL_LINK_INBCASTOCTETS, InBcastOctets)
        __ADD(RTNL_LINK_OUTBCASTOCTETS, OutBcastOctets)
+       __ADD(RTNL_LINK_ICMP6_INMSGS, ICMP6_InMsgs)
+       __ADD(RTNL_LINK_ICMP6_INERRORS, ICMP6_InErrors)
+       __ADD(RTNL_LINK_ICMP6_OUTMSGS, ICMP6_OutMsgs)
+       __ADD(RTNL_LINK_ICMP6_OUTERRORS, ICMP6_OutErrors)
 };
 
 char *rtnl_link_stat2str(int st, char *buf, size_t len)