patch-1.3.30 linux/net/core/skbuff.c

Next file: linux/net/core/sock.c
Previous file: linux/net/ax25/ax25_timer.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.29/linux/net/core/skbuff.c linux/net/core/skbuff.c
@@ -545,6 +545,7 @@
 	skb->stamp.tv_sec=0;	/* No idea about time */
 	skb->localroute = 0;
 	skb->ip_summed = 0;
+	memset(skb->proto_priv, 0, sizeof(skb->proto_priv));
 	save_flags(flags);
 	cli();
 	net_skbcount++;
@@ -619,6 +620,7 @@
 	n->daddr=skb->daddr;
 	n->raddr=skb->raddr;
 	n->acked=skb->acked;
+	memcpy(n->proto_priv, skb->proto_priv, sizeof(skb->proto_priv));
 	n->used=skb->used;
 	n->free=1;
 	n->arp=skb->arp;

FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen, [email protected] with Sam's (original) version
of this