summaryrefslogtreecommitdiffstats
path: root/sys/netsmb
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2006-08-03 09:59:08 +0000
committeryar <yar@FreeBSD.org>2006-08-03 09:59:08 +0000
commitd0aaec359fd46d2e4ee51f1079a060a0bd9f2b84 (patch)
tree46e34c4a1af559b2e070bd591fe632ef6e4eb0db /sys/netsmb
parent3ff2ef88e741ff06a7de9813d21b5394b85e9f1b (diff)
downloadFreeBSD-src-d0aaec359fd46d2e4ee51f1079a060a0bd9f2b84.zip
FreeBSD-src-d0aaec359fd46d2e4ee51f1079a060a0bd9f2b84.tar.gz
Should vlan_input() ever be called with ifp pointing to a non-Ethernet
interface, do not just assign -1 to tag because it breaks the logic of the code to follow. The better way is to handle this case as an unsupported protocol and return unless INVARIANTS is in effect and we can panic. Panic is good there because the scenario can happen only because of a coding error elsewhere. We also should show the interface name in the panic message for easier debugging of the problem, should it ever emerge. Submitted by: qingli (initially)
Diffstat (limited to 'sys/netsmb')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud