[Bridge] [PATCH net] bridge: vlan: fix usage of vlan 0 and 4095 again

David Miller davem at davemloft.net
Thu Jul 2 19:19:43 UTC 2015


From: Nikolay Aleksandrov <nikolay at cumulusnetworks.com>
Date: Thu,  2 Jul 2015 05:48:17 -0700

> Vlan ids 0 and 4095 were disallowed by commit:
> 8adff41c3d25 ("bridge: Don't use VID 0 and 4095 in vlan filtering")
> but then the check was removed when vlan ranges were introduced by:
> bdced7ef7838 ("bridge: support for multiple vlans and vlan ranges in setlink and dellink requests")
> So reintroduce the vlan range check.
> Before patch:
> [root at testvm ~]# bridge vlan add vid 0 dev eth0 master
> (succeeds)
> After Patch:
> [root at testvm ~]# bridge vlan add vid 0 dev eth0 master
> RTNETLINK answers: Invalid argument
> 
> Signed-off-by: Nikolay Aleksandrov <nikolay at cumulusnetworks.com>
> Fixes: bdced7ef7838 ("bridge: support for multiple vlans and vlan ranges in setlink and dellink requests")

Applied.


More information about the Bridge mailing list