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
- Lines: 18
- Date:
Mon Aug 14 15:49:05 1995
- Orig file:
v1.3.18/linux/net/core/skbuff.c
- Orig date:
Fri Jul 7 13:42:58 1995
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