]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ip: use rtnelink to manage mroute
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Fri, 14 Dec 2012 18:08:17 +0000 (10:08 -0800)
committerStephen Hemminger <shemminger@vyatta.com>
Fri, 14 Dec 2012 18:08:17 +0000 (10:08 -0800)
commite34d3dcce27d43d3ae96a299e74bf457c42badd2
tree81f125e78a93f46b4056e2948b25134790c2494b
parente509fb1b68c5091982b2203638837390abd911cc
ip: use rtnelink to manage mroute

mroute was using /proc/net/ip_mr_[vif|cache] to display mroute entries. Hence,
only RT_TABLE_DEFAULT was displayed and only IPv4.
With rtnetlink, it is possible to display all tables for IPv4 and IPv6. The output
format is kept. Also, like before the patch, statistics are displayed when user specify
the '-s' argument.

The patch also adds the support of 'ip monitor mroute', which is now possible.

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
ip/ip_common.h
ip/ipmonitor.c
ip/ipmroute.c