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

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

diff -u --recursive --new-file v2.1.29/linux/net/core/skbuff.c linux/net/core/skbuff.c
@@ -47,7 +47,6 @@
 #include <linux/skbuff.h>
 
 #include <net/ip.h>
-#include <net/ipv6.h>
 #include <net/protocol.h>
 #include <net/dst.h>
 #include <net/tcp.h>
@@ -607,7 +606,7 @@
 	int len;
 	unsigned char *bptr;
 
-	if (intr_count && priority!=GFP_ATOMIC) 
+	if (0 && intr_count && priority!=GFP_ATOMIC) 
 	{
 		static int count = 0;
 		if (++count < 5) {
@@ -663,6 +662,7 @@
 	skb->truesize=size;
 	skb->stamp.tv_sec=0;	/* No idea about time */
 	skb->ip_summed = 0;
+	skb->security = 0;	/* By default packets are insecure */
 	skb->dst = NULL;
 	skb->destructor = NULL;
 	memset(skb->cb, 0, sizeof(skb->cb));
@@ -799,9 +799,6 @@
 	n->h.raw=skb->h.raw+offset;
 	n->nh.raw=skb->nh.raw+offset;
 	n->mac.raw=skb->mac.raw+offset;
-#if defined(CONFIG_IPV6) || defined (CONFIG_IPV6_MODULE)
-	n->nexthop = skb->nexthop;
-#endif
 	n->seq=skb->seq;
 	n->end_seq=skb->end_seq;
 	n->ack_seq=skb->ack_seq;
@@ -813,9 +810,8 @@
 	n->users=1;
 	n->pkt_type=skb->pkt_type;
 	n->stamp=skb->stamp;
-	n->arp=skb->arp;
 	n->destructor = NULL;
-	
+	n->security=skb->security;
 	IS_SKB(n);
 	return n;
 }
@@ -859,9 +855,6 @@
 	n->nh.raw=skb->nh.raw+offset;
 	n->mac.raw=skb->mac.raw+offset;
 	memcpy(n->cb, skb->cb, sizeof(skb->cb));
-#if defined(CONFIG_IPV6) || defined (CONFIG_IPV6_MODULE)
- 	n->nexthop = skb->nexthop;
-#endif
 	n->seq=skb->seq;
  	n->end_seq=skb->end_seq;
 	n->ack_seq=skb->ack_seq;
@@ -873,7 +866,8 @@
 	n->pkt_type=skb->pkt_type;
 	n->stamp=skb->stamp;
 	n->destructor = NULL;
- 	
+	n->security=skb->security;
+
 	IS_SKB(n);
 	return n;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov