diff options
| author | David Gibson <david@gibson.dropbear.id.au> | 2025-10-31 15:19:27 +1100 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2025-11-01 00:23:02 +0100 |
| commit | 06c3dcc2a6e2a814b52dc2549ef3db8c0771b454 (patch) | |
| tree | 0305bac059ea93d748192c016a620aa2759fb408 /test | |
| parent | 1754f61e9ac81c051b5c165059a549a3e9156dfc (diff) | |
| download | passt-06c3dcc2a6e2a814b52dc2549ef3db8c0771b454.tar passt-06c3dcc2a6e2a814b52dc2549ef3db8c0771b454.tar.gz passt-06c3dcc2a6e2a814b52dc2549ef3db8c0771b454.tar.bz2 passt-06c3dcc2a6e2a814b52dc2549ef3db8c0771b454.tar.lz passt-06c3dcc2a6e2a814b52dc2549ef3db8c0771b454.tar.xz passt-06c3dcc2a6e2a814b52dc2549ef3db8c0771b454.tar.zst passt-06c3dcc2a6e2a814b52dc2549ef3db8c0771b454.zip | |
fwd: Share port scanning logic between init and timer cases
When using -t auto and the like, we scan for listening ports once at
startup, then repeatedly on a timer. With previous rearrangements the
logic for each of these cases is very nearly repeated. Factor it out into
a fwd_scan_ports() function.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions
