diff options
| author | David Gibson <david@gibson.dropbear.id.au> | 2026-04-10 11:02:58 +1000 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2026-04-15 23:31:54 +0200 |
| commit | d62a552c91d75f3312ec14f8138aebd5bbfe7f61 (patch) | |
| tree | 2d9cf29fc6c673a58a4e2b4b731092add1ef245d /doc/platform-requirements | |
| parent | b68cac078c16486a2a1c863d00187a204037a7b7 (diff) | |
| download | passt-d62a552c91d75f3312ec14f8138aebd5bbfe7f61.tar passt-d62a552c91d75f3312ec14f8138aebd5bbfe7f61.tar.gz passt-d62a552c91d75f3312ec14f8138aebd5bbfe7f61.tar.bz2 passt-d62a552c91d75f3312ec14f8138aebd5bbfe7f61.tar.lz passt-d62a552c91d75f3312ec14f8138aebd5bbfe7f61.tar.xz passt-d62a552c91d75f3312ec14f8138aebd5bbfe7f61.tar.zst passt-d62a552c91d75f3312ec14f8138aebd5bbfe7f61.zip | |
conf: Don't be strict about exclusivity of forwarding mode
Currently as well as building the forwarding tables, conf() maintains a
"forwarding mode" value for each protocol and direction. This prevents,
for example "-t all" and "-t 40000" being given on the same command line.
This restriction predates the forwarding table and is no longer really
necessary. Remove the restriction, instead doing our best to apply all the
given options simultaneously.
* Many combinations previously disallowed will still be disallowed because
of conflicts between the specific generated rules, e.g.
-t all -t 8888
(because -t all already listens on port 8888)
* Some new combinations are now allowed and will work, e.g.
-t all -t 40000
because 'all' excludes ephemeral ports (which includes 40000 on default
Linux configurations).
* We remove our mode variables, but keep boolean variables to track if
any forwarding config option has been given. This is needed in order to
correctly default to -t auto -T auto -u auto -U auto for pasta.
* -[tTuU] none after any other rules is still considered an error.
However -t none *before* other rules is allowed. This is potentially
confusing, but is awkward to avoid for the time being.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'doc/platform-requirements')
0 files changed, 0 insertions, 0 deletions
