patch-2.2.9 linux/include/linux/skbuff.h
Next file: linux/include/net/tcp.h
Previous file: linux/include/linux/hfs_fs_sb.h
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Thu May 13 10:33:17 1999
- Orig file:
v2.2.8/linux/include/linux/skbuff.h
- Orig date:
Fri Oct 9 13:27:16 1998
diff -u --recursive --new-file v2.2.8/linux/include/linux/skbuff.h linux/include/linux/skbuff.h
@@ -449,6 +449,14 @@
* Add data to an sk_buff
*/
+extern __inline__ unsigned char *__skb_put(struct sk_buff *skb, unsigned int len)
+{
+ unsigned char *tmp=skb->tail;
+ skb->tail+=len;
+ skb->len+=len;
+ return tmp;
+}
+
extern __inline__ unsigned char *skb_put(struct sk_buff *skb, unsigned int len)
{
unsigned char *tmp=skb->tail;
@@ -461,6 +469,13 @@
here: ;
}
return tmp;
+}
+
+extern __inline__ unsigned char *__skb_push(struct sk_buff *skb, unsigned int len)
+{
+ skb->data-=len;
+ skb->len+=len;
+ return skb->data;
}
extern __inline__ unsigned char *skb_push(struct sk_buff *skb, unsigned int len)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)