summaryrefslogtreecommitdiff
path: root/sys/dev/ic/rtl81x9.c
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2001-06-23 23:17:36 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2001-06-23 23:17:36 +0000
commitf139277161f7fed7cfbee0d4f2f2e8176d57e063 (patch)
tree02caa9747dc8ddc4078e082c659aff63c2c07579 /sys/dev/ic/rtl81x9.c
parent5cbca6f215a52337972ce82ec925fd7bfa799e31 (diff)
ether_input_mbuf().
Diffstat (limited to 'sys/dev/ic/rtl81x9.c')
-rw-r--r--sys/dev/ic/rtl81x9.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/ic/rtl81x9.c b/sys/dev/ic/rtl81x9.c
index 2363116cf7b..6fad174afd8 100644
--- a/sys/dev/ic/rtl81x9.c
+++ b/sys/dev/ic/rtl81x9.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtl81x9.c,v 1.3 2001/05/22 11:35:16 mickey Exp $ */
+/* $OpenBSD: rtl81x9.c,v 1.4 2001/06/23 23:17:35 fgsch Exp $ */
/*
* Copyright (c) 1997, 1998
@@ -626,7 +626,6 @@ int rl_list_tx_init(sc)
void rl_rxeof(sc)
struct rl_softc *sc;
{
- struct ether_header *eh;
struct mbuf *m;
struct ifnet *ifp;
int total_len = 0;
@@ -731,7 +730,6 @@ void rl_rxeof(sc)
if (m == NULL)
continue;
- eh = mtod(m, struct ether_header *);
ifp->if_ipackets++;
#if NBPFILTER > 0
@@ -741,9 +739,7 @@ void rl_rxeof(sc)
if (ifp->if_bpf)
bpf_mtap(ifp->if_bpf, m);
#endif
- /* Remove header from mbuf and pass it on. */
- m_adj(m, sizeof(struct ether_header));
- ether_input(ifp, eh, m);
+ ether_input_mbuf(ifp, m);
}
return;