cvs commit: src/sys/net if_vlan.c if_vlan_var.h

Bill Paul wpaul at FreeBSD.org
Tue Jul 8 14:54:23 PDT 2003


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


More information about the cvs-all mailing list