aboutgitcodebugslistschat
path: root/tcp.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2023-11-03 13:22:55 +1100
committerStefano Brivio <sbrivio@redhat.com>2023-11-07 09:52:59 +0100
commit26d86f1304af402878d143ba20a18ef59c444263 (patch)
treec89a251ab62c00571a36c6fe3c17cb49398b279e /tcp.c
parent3fb3f0f7a59498bdea1d199eecfdbae6c608f78f (diff)
downloadpasst-26d86f1304af402878d143ba20a18ef59c444263.tar
passt-26d86f1304af402878d143ba20a18ef59c444263.tar.gz
passt-26d86f1304af402878d143ba20a18ef59c444263.tar.bz2
passt-26d86f1304af402878d143ba20a18ef59c444263.tar.lz
passt-26d86f1304af402878d143ba20a18ef59c444263.tar.xz
passt-26d86f1304af402878d143ba20a18ef59c444263.tar.zst
passt-26d86f1304af402878d143ba20a18ef59c444263.zip
conf: Cleaner initialisation of default forwarding modes
Initialisation of the forwarding mode variables is complicated a bit by the fact that we have different defaults for passt and pasta modes. This leads to some debateably duplicated code between those two cases. More significantly, however, currently the final setting of the mode variable is interleaved with the code to actually start automatic scanning when that's selected. This essentially mingles "policy" code (setting the default mode), with implementation code (making that happen). That's a bit inflexible if we want to change policies in future. Disentangle these two pieces, and use a slightly different construction to make things briefer as well. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tcp.c')
0 files changed, 0 insertions, 0 deletions