diff options
author | ps <ps@FreeBSD.org> | 2003-09-23 19:54:32 +0000 |
---|---|---|
committer | ps <ps@FreeBSD.org> | 2003-09-23 19:54:32 +0000 |
commit | 153abc393cf68bff18d3bfda1abe3a4a0122c781 (patch) | |
tree | 1333301a36ecb9202b614ebf62beb3ef188805fd /sys/dev/bge | |
parent | 872a8ddb11c7d4fac4671dac2d4492d9c8d1dcf5 (diff) | |
download | FreeBSD-src-153abc393cf68bff18d3bfda1abe3a4a0122c781.zip FreeBSD-src-153abc393cf68bff18d3bfda1abe3a4a0122c781.tar.gz |
By not setting No_CRC in the Mode Control Register, we must also
reduce the size of the packet by 4 bytes to remove the ethernet crc.
Submitted by: jdp
Diffstat (limited to 'sys/dev/bge')
-rw-r--r-- | sys/dev/bge/if_bge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c index 04cf2e8..a036dcb6 100644 --- a/sys/dev/bge/if_bge.c +++ b/sys/dev/bge/if_bge.c @@ -2709,7 +2709,7 @@ bge_rxeof(sc) } #endif eh = mtod(m, struct ether_header *); - m->m_pkthdr.len = m->m_len = cur_rx->bge_len; + m->m_pkthdr.len = m->m_len = cur_rx->bge_len - ETHER_CRC_LEN; m->m_pkthdr.rcvif = ifp; #if 0 /* currently broken for some packets, possibly related to TCP options */ |