diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2014-04-07 13:30:52 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-04-26 21:44:19 +0200 |
commit | 98ca67469da70accd710b14c28e77be2126170a8 (patch) | |
tree | 3cc649f08f9743fff2f8367dee74162ed30ace96 /device.h | |
parent | 08d35c7a59a182b9ef05d95ca3c583806b2ba924 (diff) |
netifd: Add interface config support to enable/disable IPv6 in the kernel per device
Main use case is being able to disable IPv6 on (a) WAN interface(s) when only IPv4 connectivity is offered or 6rd is used.
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'device.h')
-rw-r--r-- | device.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -31,6 +31,7 @@ enum { DEV_ATTR_MACADDR, DEV_ATTR_TXQUEUELEN, DEV_ATTR_ENABLED, + DEV_ATTR_IPV6, __DEV_ATTR_MAX, }; @@ -60,6 +61,7 @@ enum { DEV_OPT_MTU = (1 << 0), DEV_OPT_MACADDR = (1 << 1), DEV_OPT_TXQUEUELEN = (1 << 2), + DEV_OPT_IPV6 = (1 << 3), }; /* events broadcasted to all users of a device */ @@ -105,6 +107,7 @@ struct device_settings { unsigned int mtu; unsigned int txqueuelen; uint8_t macaddr[6]; + bool ipv6; }; /* |