Date: Tue, 8 Jul 2003 14:54:20 -0700 (PDT) From: Bill Paul <wpaul@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/net if_vlan.c if_vlan_var.h Message-ID: <200307082154.h68LsMQm021423@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
wpaul 2003/07/08 14:54:20 PDT
FreeBSD src repository
Modified files:
sys/net if_vlan.c if_vlan_var.h
Log:
- In vlan_input(), always mask off all but the VLID bits from tags
extracted from received frames, both in the IFCAP_VLAN_HWTAGGING case
and not. (Some drivers may already do this masking internally, but
doing it here doesn't hurt and insures consistency.)
- In vlan_ioctl(), don't let the user set a VLAN ID value with anything
besides the VLID bits set, otherwise we will have trouble matching
an interface in vlan_input() later.
PR: kern/46405
Revision Changes Path
1.51 +10 -2 src/sys/net/if_vlan.c
1.16 +2 -1 src/sys/net/if_vlan_var.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200307082154.h68LsMQm021423>
