system-linux: add device options used by wpad
[project/netifd.git] / system.h
index 252fd923dd23a61db83b349bfe12e47b780c9dfc..52161a8f573d6e254f80cc032d9deebca2e2a160 100644 (file)
--- a/system.h
+++ b/system.h
@@ -44,6 +44,16 @@ enum vxlan_data {
        VXLAN_DATA_ATTR_MACADDR,
        VXLAN_DATA_ATTR_RXCSUM,
        VXLAN_DATA_ATTR_TXCSUM,
+       VXLAN_DATA_ATTR_SRCPORTMIN,
+       VXLAN_DATA_ATTR_SRCPORTMAX,
+       VXLAN_DATA_ATTR_LEARNING,
+       VXLAN_DATA_ATTR_RSC,
+       VXLAN_DATA_ATTR_PROXY,
+       VXLAN_DATA_ATTR_L2MISS,
+       VXLAN_DATA_ATTR_L3MISS,
+       VXLAN_DATA_ATTR_GBP,
+       VXLAN_DATA_ATTR_AGEING,
+       VXLAN_DATA_ATTR_LIMIT,
        __VXLAN_DATA_ATTR_MAX
 };
 
@@ -127,6 +137,8 @@ struct bridge_config {
        int hello_time;
        int max_age;
        int hash_max;
+
+       bool vlan_filtering;
 };
 
 enum macvlan_opt {
@@ -194,6 +206,7 @@ int system_bridge_addbr(struct device *bridge, struct bridge_config *cfg);
 int system_bridge_delbr(struct device *bridge);
 int system_bridge_addif(struct device *bridge, struct device *dev);
 int system_bridge_delif(struct device *bridge, struct device *dev);
+int system_bridge_vlan(const char *iface, uint16_t vid, bool add, unsigned int vflags);
 
 int system_macvlan_add(struct device *macvlan, struct device *dev, struct macvlan_config *cfg);
 int system_macvlan_del(struct device *macvlan);