diff options
author | 2001-03-23 07:45:42 +0000 | |
---|---|---|
committer | 2001-03-23 07:45:42 +0000 | |
commit | 2c29b90d2dee283690c27599d0ae0a8e88fb23ea (patch) | |
tree | b02010393f067d4616afa466f411ad884646153d | |
parent | m_freem not m_free (diff) | |
download | wireguard-openbsd-2c29b90d2dee283690c27599d0ae0a8e88fb23ea.tar.xz wireguard-openbsd-2c29b90d2dee283690c27599d0ae0a8e88fb23ea.zip |
check rcvif and tag for vlan_input_tag() [Same check as in vlan_input()]
-rw-r--r-- | sys/net/if_vlan.c | 4 |
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; } |