netifd: Add interface config support to enable/disable IPv6 in the kernel per device
[project/netifd.git] / device.h
index dd57927..6fceaa1 100644 (file)
--- a/device.h
+++ b/device.h
@@ -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 */
@@ -78,6 +80,9 @@ enum device_event {
        DEV_EVENT_LINK_UP,
        DEV_EVENT_LINK_DOWN,
 
+       /* Topology changed (i.e. bridge member added) */
+       DEV_EVENT_TOPO_CHANGE,
+
        __DEV_EVENT_MAX
 };
 
@@ -102,6 +107,7 @@ struct device_settings {
        unsigned int mtu;
        unsigned int txqueuelen;
        uint8_t macaddr[6];
+       bool ipv6;
 };
 
 /*