X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=device.h;h=a6c131aa13715eb37765c21bc1c3582cc1c29c5c;hp=c31399c9c5f9b28ed5caf43ecc6e1d5ad1bcaab3;hb=1fceaa57f9359ab9792cc97aa81ba5af3f5ffca7;hpb=1488a64acb77f721fc10d90b0453d95b488460e1 diff --git a/device.h b/device.h index c31399c..a6c131a 100644 --- a/device.h +++ b/device.h @@ -43,6 +43,7 @@ enum { DEV_ATTR_XPS, DEV_ATTR_DADTRANSMITS, DEV_ATTR_MULTICAST_TO_UNICAST, + DEV_ATTR_MULTICAST_ROUTER, __DEV_ATTR_MAX, }; @@ -57,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); @@ -86,6 +85,7 @@ enum { 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 */ @@ -128,6 +128,7 @@ struct device_user { struct device_settings { unsigned int flags; + unsigned int valid_flags; unsigned int mtu; unsigned int mtu6; unsigned int txqueuelen; @@ -144,6 +145,7 @@ struct device_settings { bool xps; unsigned int dadtransmits; bool multicast_to_unicast; + unsigned int multicast_router; }; /* @@ -179,6 +181,7 @@ struct device { bool iface_config; bool default_config; bool wireless; + bool wireless_ap; bool wireless_isolate; struct interface *config_iface;