summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_ti.c
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2005-04-17 23:02:03 +0000
committerBrad Smith <brad@cvs.openbsd.org>2005-04-17 23:02:03 +0000
commit7543a315d882308d72be69e1a207f521fad9bc02 (patch)
tree4d3997264ef147291be7c7cd7c005f926d5c0d4f /sys/dev/pci/if_ti.c
parenta19a369720df8c731a1ef9926bd45c36c7db8a84 (diff)
- In vlan_input()/vlan_input_tag(), always mask off all but the VLID
bits from tags extracted from received frames. (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. - Set the interface speed back to zero after ether_ifattach(). RFC 2863 says: "For a sub-layer which has no concept of bandwidth, [ifSpeed] should be zero." - Do not call if_down() on a parent interface if it's already down. From FreeBSD Tested by camield@ and Alexey E. Suslikov <cruel at texnika dot com dot ua> ok camield@
Diffstat (limited to 'sys/dev/pci/if_ti.c')
0 files changed, 0 insertions, 0 deletions