summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2010-11-11 23:14:57 +0100
committerThomas Graf <tgraf@suug.ch>2010-11-11 23:14:57 +0100
commite69efadc46c1395a281a540d9721c8f8af0c8a22 (patch)
treecbfe361bf16710c52712b9560360cdb70d134692
parent407e9eb05db556522eb319c1a513399f3c6b822e (diff)
downloadlibnl-e69efadc46c1395a281a540d9721c8f8af0c8a22.tar.gz
Add support for per interface ICMPv6 statistics
-rw-r--r--include/netlink/route/link.h4
-rw-r--r--lib/route/link.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/include/netlink/route/link.h b/include/netlink/route/link.h
index 1949353..6b0b45c 100644
--- a/include/netlink/route/link.h
+++ b/include/netlink/route/link.h
@@ -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,
};
diff --git a/lib/route/link.c b/lib/route/link.c
index d54082a..6e6460b 100644
--- a/lib/route/link.c
+++ b/lib/route/link.c
@@ -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)