tcp: Add tcp_inq to get available receive bytes on socket
authorTom Herbert <tom@herbertland.com>
Mon, 7 Mar 2016 22:11:05 +0000 (14:11 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Mar 2016 21:36:14 +0000 (16:36 -0500)
commit473bd239b808a8af5241ce9996a16d283d88ddff
tree1a02155265887fa8e2893ddc144a656c240349ee
parentfa9835e52e3ea946916c2ce6c625c86421131740
tcp: Add tcp_inq to get available receive bytes on socket

Create a common kernel function to get the number of bytes available
on a TCP socket. This is based on code in INQ getsockopt and we now call
the function for that getsockopt.

Signed-off-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h
net/ipv4/tcp.c