On Thu, Feb 10, 2011 at 12:08:24PM +0100, Henning Brauer wrote:
> * Camiel Dobbelaar [2011-02-09 20:34]:
> > The valid range for vlan tags in OpenBSD is 0-4095 (inclusive).
>
> not only in openbsd - that's what you can fit in the 12 bits ;)
>
> > Index: ifconfig.c
> > ===
Op 10-2-2011 12:08, Henning Brauer schreef:
not only in openbsd - that's what you can fit in the 12 bits;)
Time to implement half bits next April 1. ;) Also solves the ip address
range problem, and numerous other things.
Erik
* Camiel Dobbelaar [2011-02-09 20:34]:
> The valid range for vlan tags in OpenBSD is 0-4095 (inclusive).
not only in openbsd - that's what you can fit in the 12 bits ;)
> Index: ifconfig.c
> ===
> RCS file: /cvs/src/sbin/ifconfig/if
The valid range for vlan tags in OpenBSD is 0-4095 (inclusive). Fix
both checks.
Makes vlan0 autoconfig work (obj/ifconfig has the diff):
# ifconfig vlan0 vlandev fxp0
ifconfig: invalid vlan tag and device specification
# obj/ifconfig vlan0 vlandev fxp0
and gives a better error message on tags