summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2001-03-23 07:45:43 +0000
committerJason Wright <jason@cvs.openbsd.org>2001-03-23 07:45:43 +0000
commit911933fccfde2983feb3d9d95950c98659f72c29 (patch)
treea74d78c6dec92d7d035beeb2732769188bdd2963 /sys/net
parent3682aacd57954e2a49a41dc4d82a0e2e5636b896 (diff)
check rcvif and tag for vlan_input_tag() [Same check as in vlan_input()]
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_vlan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c
index e05c6429645..7e9ba36f770 100644
--- a/sys/net/if_vlan.c
+++ b/sys/net/if_vlan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vlan.c,v 1.11 2001/03/23 07:37:21 jason Exp $ */
+/* $OpenBSD: if_vlan.c,v 1.12 2001/03/23 07:45:42 jason Exp $ */
/*
* Copyright 1998 Massachusetts Institute of Technology
*
@@ -297,7 +297,7 @@ vlan_input_tag(struct ether_header *eh, struct mbuf *m, u_int16_t t)
for (i = 0; i < NVLAN; i++) {
ifv = &ifv_softc[i];
- if (ifv->ifv_tag == t)
+ if (m->m_pkthdr.rcvif == ifv->ifv_p && t == ifv->ifv_tag)
break;
}