aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorFlorian Westphal <[email protected]>2022-09-06 17:20:36 +0200
committerFlorian Westphal <[email protected]>2022-09-07 16:46:04 +0200
commitadda60cc2bb0fa46bed004070f29f90db96afbb3 (patch)
tree9efa77eccff0666b38dbb5cee926625f19ef5aa1 /tools/perf/scripts/python
parentc92c27171040554cfda7a3fc925e9dbcb5b4a698 (diff)
netfilter: nat: avoid long-running port range loop
Looping a large port range takes too long. Instead select a random offset within [ntohs(exp->saved_proto.tcp.port), 65535] and try 128 ports. This is a rehash of an erlier patch to do the same, but generalized to handle other helpers as well. Link: https://patchwork.ozlabs.org/project/netfilter-devel/patch/[email protected]/ Signed-off-by: Florian Westphal <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions