aboutgitcodebugslistschat
path: root/doc/platform-requirements
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2026-03-11 23:03:06 +1100
committerStefano Brivio <sbrivio@redhat.com>2026-03-11 22:11:30 +0100
commit0294fae2050a224d7c6ad99d9cb8f2490c58594c (patch)
treedcaa11623a4a773099d15335dfeff2f1c0098df1 /doc/platform-requirements
parent831e98384b057a7e74aa615200752c1d84c017ee (diff)
downloadpasst-0294fae2050a224d7c6ad99d9cb8f2490c58594c.tar
passt-0294fae2050a224d7c6ad99d9cb8f2490c58594c.tar.gz
passt-0294fae2050a224d7c6ad99d9cb8f2490c58594c.tar.bz2
passt-0294fae2050a224d7c6ad99d9cb8f2490c58594c.tar.lz
passt-0294fae2050a224d7c6ad99d9cb8f2490c58594c.tar.xz
passt-0294fae2050a224d7c6ad99d9cb8f2490c58594c.tar.zst
passt-0294fae2050a224d7c6ad99d9cb8f2490c58594c.zip
conf, fwd: Make overall forwarding mode local to conf path
The 'mode' field of struct fwd_ports records the overall forwarding mode. Now that runtime forwarding decisions are made based on the forwarding table, this is almost unused outside conf(). The only exception is the auto-port scanning code, which uses it to determine if a port scan is necessary. We can instead derive that from the forwarding table itself by checking if there are any entries with the FWD_SCAN flag. Once that's done, make the mode purely local to conf(). While we're there rename the constants to FWD_MODE_* to avoid confusion with the forwarding rule flag bits, which are also prefixed with FWD_. 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