mbox series

[0/3] netifd: add bridge/vlan support

Message ID 20200712165020.249741-1-john@phrozen.org
Headers show
Series netifd: add bridge/vlan support | expand


John Crispin July 12, 2020, 4:50 p.m. UTC
Allow handling wifi interfaces with vlans attached to them inside a bridge.

We can now add the follwoing optiosn to wifi-iface and wifi-vlan sections.
	option vid 100
	option vlan_untag 0/1
The traffic will then be handled inside the bridge with the defined vid.
We can also control if egress bridge traffic should be tagged or not.
For this to work the following option needs to be set in the corresponding
networks interface section.
	option vlan_filtering 1

John Crispin (3):
  bridge: allow turning on vlan_filtering
  bridge: allow adding vlans to a bridge
  wireless: allow adding bridge vlans

 bridge.c       |  6 ++++++
 system-linux.c | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++
 system.h       |  3 +++
 wireless.c     | 49 +++++++++++++++++++++++++++++++++++++++++++++
 wireless.h     |  4 ++++
 5 files changed, 116 insertions(+)