patch-2.1.12 linux/drivers/net/tulip.c
Next file: linux/drivers/pci/pci.c
Previous file: linux/drivers/char/Makefile
Back to the patch index
Back to the overall index
- Lines: 10
- Date:
Thu Nov 21 10:58:23 1996
- Orig file:
v2.1.11/linux/drivers/net/tulip.c
- Orig date:
Fri Nov 15 23:49:08 1996
diff -u --recursive --new-file v2.1.11/linux/drivers/net/tulip.c linux/drivers/net/tulip.c
@@ -1002,7 +1002,8 @@
if (status & TRING_RxFIFO) lp->stats.rx_fifo_errors++;
} else {
/* Malloc up new buffer, compatible with net-2e. */
- short pkt_len = lp->rx_ring[entry].status >> 16;
+ /* Omit the four octet CRC from the length. */
+ short pkt_len = (lp->rx_ring[entry].status >> 16) - 4;
struct sk_buff *skb;
skb = dev_alloc_skb(pkt_len + 2);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov