diff options
author | qingli <qingli@FreeBSD.org> | 2006-08-01 17:28:10 +0000 |
---|---|---|
committer | qingli <qingli@FreeBSD.org> | 2006-08-01 17:28:10 +0000 |
commit | a2e0f77d8f100b139a19a4fc8ecece7356b6afdc (patch) | |
tree | bd257e3d78eec56455a22902e0f3111b453f5f45 /sys/powerpc | |
parent | 1e0ddf7fae5884e70d7b1608edf2d929c1786ba5 (diff) | |
download | FreeBSD-src-a2e0f77d8f100b139a19a4fc8ecece7356b6afdc.zip FreeBSD-src-a2e0f77d8f100b139a19a4fc8ecece7356b6afdc.tar.gz |
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
Diffstat (limited to 'sys/powerpc')
0 files changed, 0 insertions, 0 deletions