Files
ubports_kernel_google_msm/net/ipv4
Eric Dumazet e309be1169 tcp: fix FIONREAD/SIOCINQ
tcp_ioctl() tries to take into account if tcp socket received a FIN
to report correct number bytes in receive queue.

But its flaky because if the application ate the last skb,
we return 1 instead of 0.

Correct way to detect that FIN was received is to test SOCK_DONE.

Reported-by: Elliot Hughes <enh@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Neal Cardwell <ncardwell@google.com>
Cc: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-05-29 12:43:30 -07:00
..
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2012-03-08 00:30:32 -08:00
2012-03-11 23:42:51 -07:00
2012-03-11 23:42:51 -07:00
2012-03-11 23:42:51 -07:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2012-03-19 16:53:08 -04:00
2012-03-11 23:42:51 -07:00
2012-03-11 15:52:12 -07:00
2012-01-20 14:17:26 -05:00
2012-01-20 14:17:26 -05:00
2012-01-31 12:14:00 -05:00
2013-05-29 12:43:30 -07:00
2012-03-11 23:42:51 -07:00
2012-03-28 18:30:03 +01:00