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.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index bddd50bd6878..c618fbf7d173 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -95,6 +95,7 @@
95 95
96struct net_device; 96struct net_device;
97struct scatterlist; 97struct scatterlist;
98struct pipe_inode_info;
98 99
99#if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE) 100#if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE)
100struct nf_conntrack { 101struct nf_conntrack {
@@ -287,6 +288,7 @@ struct sk_buff {
287 __u8 pkt_type:3, 288 __u8 pkt_type:3,
288 fclone:2, 289 fclone:2,
289 ipvs_property:1, 290 ipvs_property:1,
291 peeked:1,
290 nf_trace:1; 292 nf_trace:1;
291 __be16 protocol; 293 __be16 protocol;
292 294
@@ -1537,6 +1539,8 @@ static inline int pskb_trim_rcsum(struct sk_buff *skb, unsigned int len)
1537 skb = skb->prev) 1539 skb = skb->prev)
1538 1540
1539 1541
1542extern struct sk_buff *__skb_recv_datagram(struct sock *sk, unsigned flags,
1543 int *peeked, int *err);
1540extern struct sk_buff *skb_recv_datagram(struct sock *sk, unsigned flags, 1544extern struct sk_buff *skb_recv_datagram(struct sock *sk, unsigned flags,
1541 int noblock, int *err); 1545 int noblock, int *err);
1542extern unsigned int datagram_poll(struct file *file, struct socket *sock, 1546extern unsigned int datagram_poll(struct file *file, struct socket *sock,
@@ -1548,7 +1552,7 @@ extern int skb_copy_and_csum_datagram_iovec(struct sk_buff *skb,
1548 int hlen, 1552 int hlen,
1549 struct iovec *iov); 1553 struct iovec *iov);
1550extern void skb_free_datagram(struct sock *sk, struct sk_buff *skb); 1554extern void skb_free_datagram(struct sock *sk, struct sk_buff *skb);
1551extern void skb_kill_datagram(struct sock *sk, struct sk_buff *skb, 1555extern int skb_kill_datagram(struct sock *sk, struct sk_buff *skb,
1552 unsigned int flags); 1556 unsigned int flags);
1553extern __wsum skb_checksum(const struct sk_buff *skb, int offset, 1557extern __wsum skb_checksum(const struct sk_buff *skb, int offset,
1554 int len, __wsum csum); 1558 int len, __wsum csum);
@@ -1559,6 +1563,11 @@ extern int skb_store_bits(struct sk_buff *skb, int offset,
1559extern __wsum skb_copy_and_csum_bits(const struct sk_buff *skb, 1563extern __wsum skb_copy_and_csum_bits(const struct sk_buff *skb,
1560 int offset, u8 *to, int len, 1564 int offset, u8 *to, int len,
1561 __wsum csum); 1565 __wsum csum);
1566extern int skb_splice_bits(struct sk_buff *skb,
1567 unsigned int offset,
1568 struct pipe_inode_info *pipe,
1569 unsigned int len,
1570 unsigned int flags);
1562extern void skb_copy_and_csum_dev(const struct sk_buff *skb, u8 *to); 1571extern void skb_copy_and_csum_dev(const struct sk_buff *skb, u8 *to);
1563extern void skb_split(struct sk_buff *skb, 1572extern void skb_split(struct sk_buff *skb,
1564 struct sk_buff *skb1, const u32 len); 1573 struct sk_buff *skb1, const u32 len);