aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
diff options
context:
space:
mode:
authorFlorian Westphal <[email protected]>2015-12-21 21:29:25 +0100
committerDavid S. Miller <[email protected]>2015-12-22 17:03:05 -0500
commite46787f0dd9385449fd77246d4fddb8634350af8 (patch)
tree783c1b9f021304da5fe038a4b396a8a59b1a2837 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
parentb1f0a0e99c58fbd7ea053ca36ba623718272b618 (diff)
tcp: send_reset: test for non-NULL sk first
tcp_md5_do_lookup requires a full socket, so once we extend _send_reset() to also accept timewait socket we would have to change if (!sk && hash_location) to something like if ((!sk || !sk_fullsock(sk)) && hash_location) { ... } else { (sk && sk_fullsock(sk)) tcp_md5_do_lookup() } Switch the two branches: check if we have a socket first, then fall back to a listener lookup if we saw a md5 option (hash_location). Signed-off-by: Florian Westphal <[email protected]> Acked-by: Eric Dumazet <[email protected]> Acked-by: Hannes Frederic Sowa <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions