patch-1.3.7 linux/drivers/net/znet.c
Next file: linux/drivers/scsi/53c7,8xx.h
Previous file: linux/drivers/net/wavelan.h
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Tue Jul 4 11:43:15 1995
- Orig file:
v1.3.6/linux/drivers/net/znet.c
- Orig date:
Fri Jun 30 16:22:29 1995
diff -u --recursive --new-file v1.3.6/linux/drivers/net/znet.c linux/drivers/net/znet.c
@@ -358,7 +358,7 @@
printk(KERN_WARNING "%s: Transmitter access conflict.\n", dev->name);
else {
short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN;
- unsigned char *buf = (void *)(skb+1);
+ unsigned char *buf = (void *)skb->data;
ushort *tx_link = zn.tx_cur - 1;
ushort rnd_len = (length + 1)>>1;
@@ -565,7 +565,7 @@
} else {
memcpy(skb_put(skb,pkt_len), zn.rx_cur, pkt_len);
if (znet_debug > 6) {
- unsigned int *packet = (unsigned int *) (skb + 1);
+ unsigned int *packet = (unsigned int *) skb->data;
printk(KERN_DEBUG "Packet data is %08x %08x %08x %08x.\n", packet[0],
packet[1], packet[2], packet[3]);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this