cvs commit: src/sys/net if_vlan.c

Qing Li qingli at
Tue Aug 1 17:28:11 UTC 2006

qingli      2006-08-01 17:28:10 UTC

  FreeBSD src repository

  Modified files:
    sys/net              if_vlan.c 
  In vlan_input(), if the network interface does not perform h/w based
  vlan tag processing, the code will use bcopy() to remove the vlan
  tag field but the code copies 2 bytes too many, which essentially
  overwrites the protocol type field.
  Also, a tag value of -1 is generated for unrecognized interface type,
  which would cause an invalid memory access in the vlans[] array.
  In addition, removed a line of dead code and its associated comments.
  Reviewed by:    sam
  Revision  Changes    Path
  1.107     +9 -15     src/sys/net/if_vlan.c

More information about the cvs-src mailing list