summaryrefslogtreecommitdiff
path: root/net/ipv4/af_inet.c
diff options
context:
space:
mode:
authorTom Herbert <tom@herbertland.com>2016-08-29 00:43:18 +0300
committerDavid S. Miller <davem@davemloft.net>2016-08-29 06:32:41 +0300
commit3203558589a597e0a10a66b258fbc5a4a6659ed0 (patch)
tree6de7c2a6beaa18df4f40bb081c7bffc51291ee4f /net/ipv4/af_inet.c
parent0294b625ad5a6d1fb50632d67cf384862d8a4a46 (diff)
downloadlinux-3203558589a597e0a10a66b258fbc5a4a6659ed0.tar.xz
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 'net/ipv4/af_inet.c')
-rw-r--r--net/ipv4/af_inet.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c
index 989a362814a9..e94b47be0019 100644
--- a/net/ipv4/af_inet.c
+++ b/net/ipv4/af_inet.c
@@ -916,6 +916,8 @@ const struct proto_ops inet_stream_ops = {
.mmap = sock_no_mmap,
.sendpage = inet_sendpage,
.splice_read = tcp_splice_read,
+ .read_sock = tcp_read_sock,
+ .peek_len = tcp_peek_len,
#ifdef CONFIG_COMPAT
.compat_setsockopt = compat_sock_common_setsockopt,
.compat_getsockopt = compat_sock_common_getsockopt,