summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2006-02-24 04:58:26 +0000
committerBrad Smith <brad@cvs.openbsd.org>2006-02-24 04:58:26 +0000
commit545ff7a19a9252f7727d4bbf03ebd6db1de5cae4 (patch)
tree6888929c08af08c3b8eb68b2ae3a2dc69360387e
parent65c26734dffd3f59aba4607104ead8b98f046b5e (diff)
check for M_PKTHDR.
-rw-r--r--sys/dev/pci/if_nfe.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/pci/if_nfe.c b/sys/dev/pci/if_nfe.c
index aaa82398875..bdaed59e4fb 100644
--- a/sys/dev/pci/if_nfe.c
+++ b/sys/dev/pci/if_nfe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_nfe.c,v 1.47 2006/02/22 21:05:13 damien Exp $ */
+/* $OpenBSD: if_nfe.c,v 1.48 2006/02/24 04:58:25 brad Exp $ */
/*-
* Copyright (c) 2006 Damien Bergamini <damien.bergamini@free.fr>
@@ -882,7 +882,8 @@ nfe_encap(struct nfe_softc *sc, struct mbuf *m0)
#if NVLAN > 0
/* setup h/w VLAN tagging */
- if ((m0->m_flags & M_PROTO1) && m0->m_pkthdr.rcvif != NULL) {
+ if ((m0->m_flags & (M_PROTO1|M_PKTHDR)) == (M_PROTO1|M_PKTHDR) &&
+ m0->m_pkthdr.rcvif != NULL) {
struct ifvlan *ifv = m0->m_pkthdr.rcvif->if_softc;
vtag = NFE_TX_VTAG | htons(ifv->ifv_tag);
}