summaryrefslogtreecommitdiff
path: root/include/net/tcp.h
diff options
context:
space:
mode:
authorTom Herbert <tom@herbertland.com>2016-08-28 14:43:18 -0700
committerDavid S. Miller <davem@davemloft.net>2016-08-28 23:32:41 -0400
commit3203558589a597e0a10a66b258fbc5a4a6659ed0 (patch)
tree6de7c2a6beaa18df4f40bb081c7bffc51291ee4f /include/net/tcp.h
parent0294b625ad5a6d1fb50632d67cf384862d8a4a46 (diff)
downloadlwn-3203558589a597e0a10a66b258fbc5a4a6659ed0.tar.gz
lwn-3203558589a597e0a10a66b258fbc5a4a6659ed0.zip
tcp: Set read_sock and peek_len proto_ops
In inet_stream_ops we set read_sock to tcp_read_sock and peek_len to tcp_peek_len (which is just a stub function that calls tcp_inq). Signed-off-by: Tom Herbert <tom@herbertland.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r--include/net/tcp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index d56666ad9249..a5af6be3a572 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -1848,6 +1848,8 @@ static inline int tcp_inq(struct sock *sk)
return answ;
}
+int tcp_peek_len(struct socket *sock);
+
static inline void tcp_segs_in(struct tcp_sock *tp, const struct sk_buff *skb)
{
u16 segs_in;