diff options
author | dg <dg@FreeBSD.org> | 1994-11-24 14:29:38 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1994-11-24 14:29:38 +0000 |
commit | 68acac5e7669e7382032efb3be686d7d31127ff7 (patch) | |
tree | f24c94cbed7412ca371d1f76bc07b9dfdcdbc432 /sys/dev/ed | |
parent | 72223a20dbcc102ebb53c5b477fb878dadf67674 (diff) | |
download | FreeBSD-src-68acac5e7669e7382032efb3be686d7d31127ff7.zip FreeBSD-src-68acac5e7669e7382032efb3be686d7d31127ff7.tar.gz |
Moved conversion of ether_type to host byte order out of ethernet drivers
and into ether_input(). It was silly to have bpf want this one way and
ether_input want it another way. Ripped out trailer support from the few
remaining drivers that still had it.
Diffstat (limited to 'sys/dev/ed')
-rw-r--r-- | sys/dev/ed/if_ed.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/dev/ed/if_ed.c b/sys/dev/ed/if_ed.c index f67d134..b9b8503 100644 --- a/sys/dev/ed/if_ed.c +++ b/sys/dev/ed/if_ed.c @@ -13,7 +13,7 @@ * the SMC Elite Ultra (8216), the 3Com 3c503, the NE1000 and NE2000, * and a variety of similar clones. * - * $Id: if_ed.c,v 1.55 1994/11/13 07:17:46 davidg Exp $ + * $Id: if_ed.c,v 1.56 1994/11/17 14:42:27 davidg Exp $ */ #include "ed.h" @@ -2110,8 +2110,7 @@ ed_get_packet(sc, buf, len, multicast) len -= sizeof(struct ether_header); /* - * Pull packet off interface. Or if this was a trailer packet, the - * data portion is appended. + * Pull packet off interface. */ if (ed_ring_to_mbuf(sc, buf, m, len) == NULL) { m_freem(m); @@ -2146,11 +2145,6 @@ ed_get_packet(sc, buf, len, multicast) */ m_adj(m, sizeof(struct ether_header)); - /* - * silly ether_input routine needs 'type' in host byte order - */ - eh->ether_type = ntohs(eh->ether_type); - ether_input(&sc->arpcom.ac_if, eh, m); return; } |