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

Next file: linux/net/ethernet/Makefile
Previous file: linux/net/core/dev.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.18/linux/net/core/skbuff.c linux/net/core/skbuff.c
@@ -379,14 +379,14 @@
 	return skb->data;
 }
 
-int skb_pull(struct sk_buff *skb, int len)
+unsigned char * skb_pull(struct sk_buff *skb, int len)
 {
 	IS_SKB(skb);
 	if(len>skb->len)
-		len=skb->len;
+		return 0;
 	skb->data+=len;
 	skb->len-=len;
-	return len;
+	return skb->data;
 }
 
 int skb_headroom(struct sk_buff *skb)

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