summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIlya Lesokhin <ilyal@mellanox.com>2018-04-30 10:16:11 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-07-07 17:31:18 +0200
commit57e7b02611e3618d7e1b3a57270924af029ede8e (patch)
tree6d826f7417bf962ec4207d2be87ce47111d0b2fe /include
parent778b407ba1d66d62e95eae55553e1c8097783283 (diff)
downloadlinux-57e7b02611e3618d7e1b3a57270924af029ede8e.tar.gz
linux-57e7b02611e3618d7e1b3a57270924af029ede8e.tar.bz2
linux-57e7b02611e3618d7e1b3a57270924af029ede8e.zip
net: Rename and export copy_skb_header
commit 08303c189581c985e60f588ad92a041e46b6e307 upstream. [ jgross@suse.com: added as needed by XSA-403 mitigation ] copy_skb_header is renamed to skb_copy_header and exported. Exposing this function give more flexibility in copying SKBs. skb_copy and skb_copy_expand do not give enough control over which parts are copied. Signed-off-by: Ilya Lesokhin <ilyal@mellanox.com> Signed-off-by: Boris Pismenny <borisp@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-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 33b6d3ba49a7..2da9e3904c43 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -1025,6 +1025,7 @@ static inline struct sk_buff *alloc_skb_fclone(unsigned int size,
struct sk_buff *skb_morph(struct sk_buff *dst, struct sk_buff *src);
int skb_copy_ubufs(struct sk_buff *skb, gfp_t gfp_mask);
struct sk_buff *skb_clone(struct sk_buff *skb, gfp_t priority);
+void skb_copy_header(struct sk_buff *new, const struct sk_buff *old);
struct sk_buff *skb_copy(const struct sk_buff *skb, gfp_t priority);
struct sk_buff *__pskb_copy_fclone(struct sk_buff *skb, int headroom,
gfp_t gfp_mask, bool fclone);