aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/skbuff.h
diff options
context:
space:
mode:
authorMathias Krause <mathias.krause@secunet.com>2013-11-07 08:18:24 -0500
committerDavid S. Miller <davem@davemloft.net>2013-11-07 19:28:58 -0500
commit0c7ddf36c29c3ce12f2d2931a357ccaa0861035a (patch)
tree98d09efb875438c09ba8eea351e11c15eff7cc59 /include/linux/skbuff.h
parentb5ad795e52dae6e9f88b193a5e779b70005d005c (diff)
net: move pskb_put() to core code
This function has usage beside IPsec so move it to the core skbuff code. While doing so, give it some documentation and change its return type to 'unsigned char *' to be in line with skb_put(). Signed-off-by: Mathias Krause <mathias.krause@secunet.com> Cc: Steffen Klassert <steffen.klassert@secunet.com> Cc: "David S. Miller" <davem@davemloft.net> Cc: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r--include/linux/skbuff.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 2e153b69d318..491dd6c2c6cc 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -1417,6 +1417,7 @@ static inline void skb_set_tail_pointer(struct sk_buff *skb, const int offset)
1417/* 1417/*
1418 * Add data to an sk_buff 1418 * Add data to an sk_buff
1419 */ 1419 */
1420unsigned char *pskb_put(struct sk_buff *skb, struct sk_buff *tail, int len);
1420unsigned char *skb_put(struct sk_buff *skb, unsigned int len); 1421unsigned char *skb_put(struct sk_buff *skb, unsigned int len);
1421static inline unsigned char *__skb_put(struct sk_buff *skb, unsigned int len) 1422static inline unsigned char *__skb_put(struct sk_buff *skb, unsigned int len)
1422{ 1423{