]> Pileus Git - ~andy/linux/commit
ipmr/ip6mr: advertise mfc stats via rtnetlink
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Tue, 4 Dec 2012 01:13:37 +0000 (01:13 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Dec 2012 18:08:10 +0000 (13:08 -0500)
commitadfa85e45dac616ff4f8bfceff1621ccafc0b1ff
tree1d9880ca13a79fbd386bd5bbd48d3031211f8fa3
parent70b386a0cc65041fb01aacf5d4b8d1fa49fc8ce9
ipmr/ip6mr: advertise mfc stats via rtnetlink

These statistics can be checked only via /proc/net/ip_mr_cache or
SIOCGETSGCNT[_IN6] and thus only for the table RT_TABLE_DEFAULT.
Advertising them via rtnetlink allows to get statistics for all cache entries,
whatever the table is.

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/rtnetlink.h
net/ipv4/ipmr.c
net/ipv6/ip6mr.c