]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ip: add support of netconf messages
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Wed, 12 Dec 2012 17:05:51 +0000 (09:05 -0800)
committerStephen Hemminger <shemminger@vyatta.com>
Wed, 12 Dec 2012 17:05:51 +0000 (09:05 -0800)
commit4852ba750a2cc122e5b933b1ce852c60ef1471fc
tree754b35dfe39f4f746c362d1b93955711313dd1f0
parentcaadda9308dad90d52fb38fa8ab68f330cefc54c
ip: add support of netconf messages

Example of the output:
$ ip monitor netconf&
[1] 24901
$ echo 0 > /proc/sys/net/ipv6/conf/all/forwarding
ipv6 dev lo forwarding off
ipv6 dev eth0 forwarding off
ipv6 all forwarding off
$ echo 1 > /proc/sys/net/ipv4/conf/eth0/forwarding
ipv4 dev eth0 forwarding on

$ ip -6 netconf
ipv6 all forwarding on mc_forwarding 0
$ ip netconf show dev eth0
ipv4 dev eth0 forwarding on rp_filter off mc_forwarding 1

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Minor cleanup of original patch, made sure netconf.h matched
result of santized kernel headers
include/linux/netconf.h [new file with mode: 0644]
ip/ipnetconf.c [new file with mode: 0644]