summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_tl.c
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2001-06-24 20:27:04 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2001-06-24 20:27:04 +0000
commite54cb0e010ad22138c636da51d6b86a95f8b4794 (patch)
tree6edcd846a448208b47118126091aa62444060402 /sys/dev/pci/if_tl.c
parentca369e064f838ab5f94b89dc067ac7f8768e0b4c (diff)
more ether_input_mbuf() conversion.
Diffstat (limited to 'sys/dev/pci/if_tl.c')
-rw-r--r--sys/dev/pci/if_tl.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/dev/pci/if_tl.c b/sys/dev/pci/if_tl.c
index eef6eae021a..b5ad89c0198 100644
--- a/sys/dev/pci/if_tl.c
+++ b/sys/dev/pci/if_tl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tl.c,v 1.19 2001/04/05 02:03:12 jason Exp $ */
+/* $OpenBSD: if_tl.c,v 1.20 2001/06/24 20:27:01 fgsch Exp $ */
/*
* Copyright (c) 1997, 1998
@@ -1154,6 +1154,7 @@ int tl_intvec_rxeof(xsc, type)
continue;
}
+ m->m_pkthdr.len = m->m_len = total_len;
#if NBPFILTER > 0
/*
* Handle BPF listeners. Let the BPF user see the packet, but
@@ -1164,15 +1165,11 @@ int tl_intvec_rxeof(xsc, type)
* since it can be used again later.
*/
if (ifp->if_bpf) {
- m->m_pkthdr.len = m->m_len = total_len;
bpf_mtap(ifp->if_bpf, m);
}
#endif
- /* Remove header from mbuf and pass it on. */
- m->m_pkthdr.len = m->m_len =
- total_len - sizeof(struct ether_header);
- m->m_data += sizeof(struct ether_header);
- ether_input(ifp, eh, m);
+ /* pass it on. */
+ ether_input_mbuf(ifp, m);
}
return(r);