diff options
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r-- | include/linux/skbuff.h | 11 |
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 | ||
96 | struct net_device; | 96 | struct net_device; |
97 | struct scatterlist; | 97 | struct scatterlist; |
98 | struct 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) |
100 | struct nf_conntrack { | 101 | struct 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 | ||
1542 | extern struct sk_buff *__skb_recv_datagram(struct sock *sk, unsigned flags, | ||
1543 | int *peeked, int *err); | ||
1540 | extern struct sk_buff *skb_recv_datagram(struct sock *sk, unsigned flags, | 1544 | extern struct sk_buff *skb_recv_datagram(struct sock *sk, unsigned flags, |
1541 | int noblock, int *err); | 1545 | int noblock, int *err); |
1542 | extern unsigned int datagram_poll(struct file *file, struct socket *sock, | 1546 | extern 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); |
1550 | extern void skb_free_datagram(struct sock *sk, struct sk_buff *skb); | 1554 | extern void skb_free_datagram(struct sock *sk, struct sk_buff *skb); |
1551 | extern void skb_kill_datagram(struct sock *sk, struct sk_buff *skb, | 1555 | extern int skb_kill_datagram(struct sock *sk, struct sk_buff *skb, |
1552 | unsigned int flags); | 1556 | unsigned int flags); |
1553 | extern __wsum skb_checksum(const struct sk_buff *skb, int offset, | 1557 | extern __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, | |||
1559 | extern __wsum skb_copy_and_csum_bits(const struct sk_buff *skb, | 1563 | extern __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); |
1566 | extern 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); | ||
1562 | extern void skb_copy_and_csum_dev(const struct sk_buff *skb, u8 *to); | 1571 | extern void skb_copy_and_csum_dev(const struct sk_buff *skb, u8 *to); |
1563 | extern void skb_split(struct sk_buff *skb, | 1572 | extern void skb_split(struct sk_buff *skb, |
1564 | struct sk_buff *skb1, const u32 len); | 1573 | struct sk_buff *skb1, const u32 len); |