projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78f2c33
)
headers: add skb_copy_datagram_msg()
author
Hauke Mehrtens
<hauke@hauke-m.de>
Sat, 15 Nov 2014 23:14:45 +0000
(
00:14
+0100)
committer
Hauke Mehrtens
<hauke@hauke-m.de>
Sun, 16 Nov 2014 15:57:09 +0000
(16:57 +0100)
This is used in some places.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backport/backport-include/linux/skbuff.h
patch
|
blob
|
history
diff --git
a/backport/backport-include/linux/skbuff.h
b/backport/backport-include/linux/skbuff.h
index df0eb626c8ad3c58f26662ce9f7191178eaa1dc6..4cab6e10ca0ba3a9061963cd4de771e97b06cbb1 100644
(file)
--- a/
backport/backport-include/linux/skbuff.h
+++ b/
backport/backport-include/linux/skbuff.h
@@
-256,4
+256,13
@@
static inline struct page *dev_alloc_page(void)
}
#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0) */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0)
+#define skb_copy_datagram_msg LINUX_BACKPORT(skb_copy_datagram_msg)
+static inline int skb_copy_datagram_msg(const struct sk_buff *from, int offset,
+ struct msghdr *msg, int size)
+{
+ return skb_copy_datagram_iovec(from, offset, msg->msg_iov, size);
+}
+#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0) */
+
#endif /* __BACKPORT_SKBUFF_H */