diff options
| author | David Gibson <david@gibson.dropbear.id.au> | 2025-10-31 15:19:28 +1100 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2025-11-01 00:23:04 +0100 |
| commit | 942bfdb801732e9076ebc90e9d8206513ddbcd90 (patch) | |
| tree | 0784e58304b5c214660dcc2039423b8ee6a9f9b6 /test/lib/git:/passt.top | |
| parent | 06c3dcc2a6e2a814b52dc2549ef3db8c0771b454 (diff) | |
| download | passt-942bfdb801732e9076ebc90e9d8206513ddbcd90.tar passt-942bfdb801732e9076ebc90e9d8206513ddbcd90.tar.gz passt-942bfdb801732e9076ebc90e9d8206513ddbcd90.tar.bz2 passt-942bfdb801732e9076ebc90e9d8206513ddbcd90.tar.lz passt-942bfdb801732e9076ebc90e9d8206513ddbcd90.tar.xz passt-942bfdb801732e9076ebc90e9d8206513ddbcd90.tar.zst passt-942bfdb801732e9076ebc90e9d8206513ddbcd90.zip | |
fwd: Check forwarding mode in fwd_scan_ports_*() rather than caller
fwd_scan_ports() needs to check for FWD_AUTO mode before calling each
scan function - otherwise it would clobber the forwarding bitmap which
should retain the user's fixed configuration.
Make this slightly cleaner and safer by moving the mode check into
fwd_scan_ports_{tcp,udp}().
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/lib/git:/passt.top')
0 files changed, 0 insertions, 0 deletions
