device: Support multicast config option
[project/netifd.git] / device.h
index b2c0ba9..ac77cfb 100644 (file)
--- a/device.h
+++ b/device.h
@@ -44,6 +44,7 @@ enum {
        DEV_ATTR_DADTRANSMITS,
        DEV_ATTR_MULTICAST_TO_UNICAST,
        DEV_ATTR_MULTICAST_ROUTER,
+       DEV_ATTR_MULTICAST,
        __DEV_ATTR_MAX,
 };
 
@@ -58,8 +59,6 @@ struct device_type {
        struct list_head list;
        const char *name;
 
-       bool keep_link_status;
-
        const struct uci_blob_param_list *config_params;
 
        struct device *(*create)(const char *name, struct blob_attr *attr);
@@ -88,6 +87,7 @@ enum {
        DEV_OPT_DADTRANSMITS            = (1 << 13),
        DEV_OPT_MULTICAST_TO_UNICAST    = (1 << 14),
        DEV_OPT_MULTICAST_ROUTER        = (1 << 15),
+       DEV_OPT_MULTICAST               = (1 << 16),
 };
 
 /* events broadcasted to all users of a device */
@@ -130,6 +130,7 @@ struct device_user {
 
 struct device_settings {
        unsigned int flags;
+       unsigned int valid_flags;
        unsigned int mtu;
        unsigned int mtu6;
        unsigned int txqueuelen;
@@ -147,6 +148,7 @@ struct device_settings {
        unsigned int dadtransmits;
        bool multicast_to_unicast;
        unsigned int multicast_router;
+       bool multicast;
 };
 
 /*
@@ -182,6 +184,7 @@ struct device {
        bool iface_config;
        bool default_config;
        bool wireless;
+       bool wireless_ap;
        bool wireless_isolate;
 
        struct interface *config_iface;