X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=device.h;h=ac77cfb02e5c4402ab2d433fd935ac12acfe9c7b;hb=6fd6be6b7f3fc4883fdc464fcbcb2b5e8d8e8174;hp=ce135bac7edeee5f0846a6d36ffa6dd4b21b9090;hpb=7dcacc6189ff255b87d9779facedfb15e140d0d3;p=project%2Fnetifd.git diff --git a/device.h b/device.h index ce135ba..ac77cfb 100644 --- a/device.h +++ b/device.h @@ -42,6 +42,9 @@ enum { DEV_ATTR_RPS, DEV_ATTR_XPS, DEV_ATTR_DADTRANSMITS, + DEV_ATTR_MULTICAST_TO_UNICAST, + DEV_ATTR_MULTICAST_ROUTER, + DEV_ATTR_MULTICAST, __DEV_ATTR_MAX, }; @@ -56,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); @@ -84,6 +85,9 @@ 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), + DEV_OPT_MULTICAST = (1 << 16), }; /* events broadcasted to all users of a device */ @@ -126,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; @@ -141,6 +146,9 @@ struct device_settings { bool rps; bool xps; unsigned int dadtransmits; + bool multicast_to_unicast; + unsigned int multicast_router; + bool multicast; }; /* @@ -160,8 +168,11 @@ struct device { struct blob_attr *config; bool config_pending; bool sys_present; + /* DEV_EVENT_ADD */ bool present; + /* DEV_EVENT_UP */ int active; + /* DEV_EVENT_LINK_UP */ bool link_active; bool external; @@ -173,6 +184,8 @@ struct device { bool iface_config; bool default_config; bool wireless; + bool wireless_ap; + bool wireless_isolate; struct interface *config_iface;