device: Don't process link events anymore in device user specific callback handlers
[project/netifd.git] / device.h
index 77ebe84..4ff335d 100644 (file)
--- a/device.h
+++ b/device.h
@@ -42,6 +42,8 @@ enum {
        DEV_ATTR_RPS,
        DEV_ATTR_XPS,
        DEV_ATTR_DADTRANSMITS,
+       DEV_ATTR_MULTICAST_TO_UNICAST,
+       DEV_ATTR_MULTICAST_ROUTER,
        __DEV_ATTR_MAX,
 };
 
@@ -56,8 +58,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);
@@ -84,6 +84,8 @@ enum {
        DEV_OPT_XPS                     = (1 << 11),
        DEV_OPT_MTU6                    = (1 << 12),
        DEV_OPT_DADTRANSMITS            = (1 << 13),
+       DEV_OPT_MULTICAST_TO_UNICAST    = (1 << 14),
+       DEV_OPT_MULTICAST_ROUTER        = (1 << 15),
 };
 
 /* events broadcasted to all users of a device */
@@ -141,6 +143,8 @@ struct device_settings {
        bool rps;
        bool xps;
        unsigned int dadtransmits;
+       bool multicast_to_unicast;
+       unsigned int multicast_router;
 };
 
 /*
@@ -176,6 +180,7 @@ struct device {
        bool iface_config;
        bool default_config;
        bool wireless;
+       bool wireless_ap;
        bool wireless_isolate;
 
        struct interface *config_iface;