aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/skbuff.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r--include/linux/skbuff.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index cbe4b2078b30..97dc5f8123b3 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -2687,6 +2687,11 @@ int skb_ensure_writable(struct sk_buff *skb, int write_len);
2687int skb_vlan_pop(struct sk_buff *skb); 2687int skb_vlan_pop(struct sk_buff *skb);
2688int skb_vlan_push(struct sk_buff *skb, __be16 vlan_proto, u16 vlan_tci); 2688int skb_vlan_push(struct sk_buff *skb, __be16 vlan_proto, u16 vlan_tci);
2689 2689
2690static inline int memcpy_from_msg(void *data, struct msghdr *msg, int len)
2691{
2692 return memcpy_fromiovec(data, msg->msg_iov, len);
2693}
2694
2690struct skb_checksum_ops { 2695struct skb_checksum_ops {
2691 __wsum (*update)(const void *mem, int len, __wsum wsum); 2696 __wsum (*update)(const void *mem, int len, __wsum wsum);
2692 __wsum (*combine)(__wsum csum, __wsum csum2, int offset, int len); 2697 __wsum (*combine)(__wsum csum, __wsum csum2, int offset, int len);