Re: vlan(4): better checks for valid vlan ids

2015-12-23 Thread Sebastian Benoit
David Gwynne(da...@gwynne.id.au) on 2015.12.22 11:06:21 +1000: > the spec says vlan 0 and vlan 4095 are reserved, so we probably > shouldnt use them. > > this tweaks the vlan tag check only allow valid ids per the spec. > > ok? code reads ok however, this could be tweaked in ifconfig too: 3589:

vlan(4): better checks for valid vlan ids

2015-12-21 Thread David Gwynne
the spec says vlan 0 and vlan 4095 are reserved, so we probably shouldnt use them. this tweaks the vlan tag check only allow valid ids per the spec. ok? Index: if_vlan.c === RCS file: /cvs/src/sys/net/if_vlan.c,v retrieving revision