summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrad <brad@openbsd.org>2005-10-11 23:58:36 +0000
committerbrad <brad@openbsd.org>2005-10-11 23:58:36 +0000
commitb920f767c8e1ceef2a2c9a0a983d3cf4d6900812 (patch)
treeff772e77192eb525404ed3a643a439b940331107
parentbz #1076 set SO_REUSEADDR on X11 forwarding listner sockets, preventing (diff)
downloadwireguard-openbsd-b920f767c8e1ceef2a2c9a0a983d3cf4d6900812.tar.xz
wireguard-openbsd-b920f767c8e1ceef2a2c9a0a983d3cf4d6900812.zip
have gem strip off the Ethernet FCS before passing it to bpf.
ok krw@, also tested by Peter Hessler on macppc
-rw-r--r--sys/dev/ic/gem.c9
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);
/*