aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-perl.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2012-10-18 09:14:12 +0000
committerDavid S. Miller <[email protected]>2012-10-18 15:34:31 -0400
commita3374c42aa5f7237e87ff3b0622018636b0c847e (patch)
tree8a9232aed518f5ce9acb862fc125aacc5cd7cebd /tools/perf/util/scripting-engines/trace-event-perl.c
parentc6846ee148e07e4cfae4de486532efb02d238938 (diff)
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 <[email protected]> Signed-off-by: Eric Dumazet <[email protected]> Cc: Neal Cardwell <[email protected]> Cc: Tom Herbert <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions