mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-10 07:15:01 +00:00

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
25 lines
423 B
C
25 lines
423 B
C
#ifndef _LINUX_NETCONF_H_
|
|
#define _LINUX_NETCONF_H_
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/netlink.h>
|
|
|
|
struct netconfmsg {
|
|
__u8 ncm_family;
|
|
};
|
|
|
|
enum {
|
|
NETCONFA_UNSPEC,
|
|
NETCONFA_IFINDEX,
|
|
NETCONFA_FORWARDING,
|
|
NETCONFA_RP_FILTER,
|
|
NETCONFA_MC_FORWARDING,
|
|
__NETCONFA_MAX
|
|
};
|
|
#define NETCONFA_MAX (__NETCONFA_MAX - 1)
|
|
|
|
#define NETCONFA_IFINDEX_ALL -1
|
|
#define NETCONFA_IFINDEX_DEFAULT -2
|
|
|
|
#endif /* _LINUX_NETCONF_H_ */
|