summaryrefslogtreecommitdiff
path: root/sys/dev/ic/acx.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2006-11-09 23:15:55 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2006-11-09 23:15:55 +0000
commit10172063fd642c85bce4f9675df26fd588e98bce (patch)
tree8a8d386c91e12b1944d4c54773d186604fa53c22 /sys/dev/ic/acx.c
parentca5ac1fe54aa4a36d6394b57c45886ac3620ac50 (diff)
Correctly update the m_pkthdr.len in the raw bpf tap. OK mglocker@
Diffstat (limited to 'sys/dev/ic/acx.c')
-rw-r--r--sys/dev/ic/acx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/acx.c b/sys/dev/ic/acx.c
index 553a6b2696d..03676dbf496 100644
--- a/sys/dev/ic/acx.c
+++ b/sys/dev/ic/acx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acx.c,v 1.53 2006/10/10 20:45:38 mbalmer Exp $ */
+/* $OpenBSD: acx.c,v 1.54 2006/11/09 23:15:54 claudio Exp $ */
/*
* Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org>
@@ -984,7 +984,7 @@ acx_start(struct ifnet *ifp)
mb.m_data = (caddr_t)tap;
mb.m_len = sc->sc_txtap_len;
mb.m_next = m;
- mb.m_pkthdr.len = mb.m_len;
+ mb.m_pkthdr.len += mb.m_len;
bpf_mtap(sc->sc_drvbpf, &mb, BPF_DIRECTION_OUT);
}
#endif