netifd: fix disabling radio via config if reconf is being used
[project/netifd.git] / device.h
index 6751628b9b330269f0af06a3678353e8192c3529..aa4da183d925be4bbd84608c308611564e7eb1f5 100644 (file)
--- a/device.h
+++ b/device.h
@@ -62,6 +62,7 @@ enum {
        DEV_ATTR_AUTH,
        DEV_ATTR_SPEED,
        DEV_ATTR_DUPLEX,
+       DEV_ATTR_VLAN,
        __DEV_ATTR_MAX,
 };
 
@@ -205,6 +206,10 @@ struct device_settings {
        bool duplex;
 };
 
+struct device_vlan_range {
+       uint16_t start, end;
+};
+
 /*
  * link layer device. typically represents a linux network device.
  * can be used to support VLANs as well
@@ -248,6 +253,8 @@ struct device {
        bool bpdu_filter;
 
        struct interface *config_iface;
+       struct device_vlan_range *extra_vlan;
+       int n_extra_vlan;
 
        /* set interface up or down */
        device_state_cb set_state;