|
@@ -21,6 +21,7 @@
|
|
#include <linux/bug.h>
|
|
#include <linux/bug.h>
|
|
#include <linux/cache.h>
|
|
#include <linux/cache.h>
|
|
#include <linux/rbtree.h>
|
|
#include <linux/rbtree.h>
|
|
|
|
+#include <linux/socket.h>
|
|
|
|
|
|
#include <linux/atomic.h>
|
|
#include <linux/atomic.h>
|
|
#include <asm/types.h>
|
|
#include <asm/types.h>
|
|
@@ -2639,6 +2640,11 @@ unsigned int datagram_poll(struct file *file, struct socket *sock,
|
|
struct poll_table_struct *wait);
|
|
struct poll_table_struct *wait);
|
|
int skb_copy_datagram_iovec(const struct sk_buff *from, int offset,
|
|
int skb_copy_datagram_iovec(const struct sk_buff *from, int offset,
|
|
struct iovec *to, int size);
|
|
struct iovec *to, int size);
|
|
|
|
+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);
|
|
|
|
+}
|
|
int skb_copy_and_csum_datagram_iovec(struct sk_buff *skb, int hlen,
|
|
int skb_copy_and_csum_datagram_iovec(struct sk_buff *skb, int hlen,
|
|
struct iovec *iov);
|
|
struct iovec *iov);
|
|
int skb_copy_datagram_from_iovec(struct sk_buff *skb, int offset,
|
|
int skb_copy_datagram_from_iovec(struct sk_buff *skb, int offset,
|