diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2005-10-11 23:58:37 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2005-10-11 23:58:37 +0000 |
commit | 3945a33835eaebb0ec42e38e36f0ca8ddae3c611 (patch) | |
tree | 698b443c2f2a61cdd9aefba0407abd0fb6eb033e /sys | |
parent | 4b89bd71fc2e042d7c45156b2deb5724a3f5a218 (diff) |
have gem strip off the Ethernet FCS before passing it to bpf.
ok krw@, also tested by Peter Hessler on macppc
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/gem.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/ic/gem.c b/sys/dev/ic/gem.c index 765da286191..d168a4b21c6 100644 --- a/sys/dev/ic/gem.c +++ b/sys/dev/ic/gem.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gem.c,v 1.44 2005/09/10 20:42:32 brad Exp $ */ +/* $OpenBSD: gem.c,v 1.45 2005/10/11 23:58:36 brad Exp $ */ /* $NetBSD: gem.c,v 1.1 2001/09/16 00:11:43 eeh Exp $ */ /* @@ -796,7 +796,7 @@ gem_init(struct ifnet *ifp) /* step 12. RX_MAC Configuration Register */ v = bus_space_read_4(t, h, GEM_MAC_RX_CONFIG); - v |= GEM_MAC_RX_ENABLE; + v |= GEM_MAC_RX_ENABLE | GEM_MAC_RX_STRIP_CRC; bus_space_write_4(t, h, GEM_MAC_RX_CONFIG, v); /* step 14. Issue Transmit Pending command */ @@ -959,10 +959,7 @@ gem_rint(sc) } #endif - /* - * No errors; receive the packet. Note the Gem - * includes the CRC with every packet. - */ + /* No errors; receive the packet. */ len = GEM_RD_BUFLEN(rxstat); /* |