summaryrefslogtreecommitdiff
path: root/system.h
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2020-07-12 18:50:19 +0200
committerFelix Fietkau <nbd@nbd.name>2020-07-18 20:31:16 +0200
commit82bcb641602579f339e9addafe5f1869134a0cd1 (patch)
tree6efe05a53645152e7d796d0ea2d132ce4b3ca2bb /system.h
parentccd9ddc10219ae90784411c7774a0d56dbced59b (diff)
downloadnetifd-82bcb641602579f339e9addafe5f1869134a0cd1.tar.gz
bridge: add support for adding vlans to a bridge
Add a rtnl helper for adding vlans to a bridge interface. Signed-off-by: John Crispin <john@phrozen.org> Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'system.h')
-rw-r--r--system.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/system.h b/system.h
index 258b1af..015987f 100644
--- a/system.h
+++ b/system.h
@@ -196,6 +196,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);