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

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)