aboutgitcodebugslistschat
path: root/test/lib
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2026-04-17 15:05:12 +1000
committerStefano Brivio <sbrivio@redhat.com>2026-04-20 23:35:51 +0200
commit4e09ddf034439930685a2aa04dfe5c456581d6ba (patch)
tree498623d9dbd1e950ba9243a0aa9b0c44d0f23812 /test/lib
parentbf7eebc88dcf615817e2826d962dee147b328eca (diff)
downloadpasst-4e09ddf034439930685a2aa04dfe5c456581d6ba.tar
passt-4e09ddf034439930685a2aa04dfe5c456581d6ba.tar.gz
passt-4e09ddf034439930685a2aa04dfe5c456581d6ba.tar.bz2
passt-4e09ddf034439930685a2aa04dfe5c456581d6ba.tar.lz
passt-4e09ddf034439930685a2aa04dfe5c456581d6ba.tar.xz
passt-4e09ddf034439930685a2aa04dfe5c456581d6ba.tar.zst
passt-4e09ddf034439930685a2aa04dfe5c456581d6ba.zip
conf: Allow user-specified auto-scanned port forwarding ranges
The forwarding table now allows for arbitrary port ranges to be marked as FWD_SCAN, meaning we don't open sockets for every port, but only those we scan as listening on the target side. However, there's currently no way to create such rules, except -[tTuU] auto which always scans every port with an unspecified listening address and interface. Allow user-specified "auto" ranges by moving the parsing of the "auto" keyword from conf_ports(), to conf_ports_spec() as part of the port specified. "auto" can be combined freely with other port ranges, e.g. -t 127.0.0.1/auto -u %lo/5000-7000,auto -T auto,12345 -U auto,~1-9000 Note that any address and interface given only affects where the automatic forwards listen, not what addresses we consider when scanning. That is, if the target side is listening on *any* address, we will create a forward on the specified address. Link: https://bugs.passt.top/show_bug.cgi?id=180 Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Laurent Vivier <lvivier@redhat.com> [sbrivio: Fix extra space after if (isdigit(*p)) reported by Laurent] Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/lib')
0 files changed, 0 insertions, 0 deletions