diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-05-24 11:50:10 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-05-24 11:50:10 +0000 |
commit | 2f7c52fd4d834522b054c93fd72f4d86fd6d6b54 (patch) | |
tree | 1b5d26e930120148a7d9860cedadcfe176b5797b /sys/arch | |
parent | 489b24a92de71e947b8ddb6905cc691a60d69e77 (diff) |
Strip off Ethernet CRC; makes dhclient shut up.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/socppc/dev/if_tsec.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/socppc/dev/if_tsec.c b/sys/arch/socppc/dev/if_tsec.c index 1c5ff465706..885b03e4689 100644 --- a/sys/arch/socppc/dev/if_tsec.c +++ b/sys/arch/socppc/dev/if_tsec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_tsec.c,v 1.4 2008/05/24 10:51:46 kettenis Exp $ */ +/* $OpenBSD: if_tsec.c,v 1.5 2008/05/24 11:50:09 kettenis Exp $ */ /* * Copyright (c) 2008 Mark Kettenis @@ -748,6 +748,10 @@ tsec_rx_proc(struct tsec_softc *sc) len, BUS_DMASYNC_POSTREAD); bus_dmamap_unload(sc->sc_dmat, rxb->tb_map); + /* Strip off CRC. */ + len -= ETHER_CRC_LEN; + KASSERT(len > 0); + m = rxb->tb_m; rxb->tb_m = NULL; m->m_pkthdr.rcvif = ifp; |