patch-2.4.6 linux/net/netrom/nr_dev.c
Next file: linux/net/netrom/nr_loopback.c
Previous file: linux/net/netlink/af_netlink.c
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Wed Jun 27 17:10:55 2001
- Orig file:
v2.4.5/linux/net/netrom/nr_dev.c
- Orig date:
Wed Apr 18 14:40:07 2001
diff -u --recursive --new-file v2.4.5/linux/net/netrom/nr_dev.c linux/net/netrom/nr_dev.c
@@ -89,6 +89,7 @@
struct net_device_stats *stats = (struct net_device_stats *)dev->priv;
struct sk_buff *skbn;
unsigned char *bp = skb->data;
+ int len;
if (arp_find(bp + 7, skb)) {
return 1;
@@ -113,13 +114,15 @@
kfree_skb(skb);
+ len = skbn->len;
+
if (!nr_route_frame(skbn, NULL)) {
kfree_skb(skbn);
stats->tx_errors++;
}
stats->tx_packets++;
- stats->tx_bytes += skbn->len;
+ stats->tx_bytes += len;
return 1;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)