diff options
author | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2006-08-03 09:59:08 +0000 |
---|---|---|
committer | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2006-08-03 09:59:08 +0000 |
commit | 60c60618829d149bd7eb02de3871a0a2c487c432 (patch) | |
tree | 46e34c4a1af559b2e070bd591fe632ef6e4eb0db /sys/net/if_vlan.c | |
parent | db8b5973e7482e032a7ce10a11855abd0e3134b5 (diff) | |
download | src-test2-60c60618829d149bd7eb02de3871a0a2c487c432.tar.gz src-test2-60c60618829d149bd7eb02de3871a0a2c487c432.zip |
Notes
Diffstat (limited to 'sys/net/if_vlan.c')
-rw-r--r-- | sys/net/if_vlan.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index 34ef7eef4078..98830669d200 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -926,12 +926,13 @@ vlan_input(struct ifnet *ifp, struct mbuf *m) evl->evl_encap_proto = evl->evl_proto; break; default: - tag = (uint16_t) -1; #ifdef INVARIANTS - panic("%s: unsupported if_type (%u)", - __func__, ifp->if_type); + panic("%s: %s has unsupported if_type %u", + __func__, ifp->if_xname, ifp->if_type); #endif - break; + m_freem(m); + ifp->if_noproto++; + return; } } |