summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2024-08-15 20:21:14 +0300
committerSteffen Klassert <steffen.klassert@secunet.com>2024-08-20 09:11:48 +0300
commit6ad8bc92a47702f0b5d0b96b680199910b89f688 (patch)
treea2713b111e104b02d0bcaea18b71d9255514be5a /include/linux
parent9b49f55838b1f42b2624216ce494f0536669e8f0 (diff)
downloadlinux-6ad8bc92a47702f0b5d0b96b680199910b89f688.tar.xz
net: add copy from skb_seq_state to buffer function
Add an skb helper function to copy a range of bytes from within an existing skb_seq_state. Signed-off-by: Christian Hopps <chopps@labn.net> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'include/linux')
-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 29c3ea5b6e93..a871533b8568 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -1433,6 +1433,7 @@ void skb_prepare_seq_read(struct sk_buff *skb, unsigned int from,
unsigned int skb_seq_read(unsigned int consumed, const u8 **data,
struct skb_seq_state *st);
void skb_abort_seq_read(struct skb_seq_state *st);
+int skb_copy_seq_read(struct skb_seq_state *st, int offset, void *to, int len);
unsigned int skb_find_text(struct sk_buff *skb, unsigned int from,
unsigned int to, struct ts_config *config);