diff options
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r-- | include/linux/skbuff.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 08c96bcbc59c..92969f662ee4 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
@@ -1521,6 +1521,21 @@ static inline void skb_copy_from_linear_data_offset(const struct sk_buff *skb, | |||
1521 | memcpy(to, skb->data + offset, len); | 1521 | memcpy(to, skb->data + offset, len); |
1522 | } | 1522 | } |
1523 | 1523 | ||
1524 | static inline void skb_copy_to_linear_data(struct sk_buff *skb, | ||
1525 | const void *from, | ||
1526 | const unsigned int len) | ||
1527 | { | ||
1528 | memcpy(skb->data, from, len); | ||
1529 | } | ||
1530 | |||
1531 | static inline void skb_copy_to_linear_data_offset(struct sk_buff *skb, | ||
1532 | const int offset, | ||
1533 | const void *from, | ||
1534 | const unsigned int len) | ||
1535 | { | ||
1536 | memcpy(skb->data + offset, from, len); | ||
1537 | } | ||
1538 | |||
1524 | extern void skb_init(void); | 1539 | extern void skb_init(void); |
1525 | 1540 | ||
1526 | /** | 1541 | /** |