aboutgitcodebugslistschat
path: root/passt.1
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-07-24 17:51:11 +1000
committerStefano Brivio <sbrivio@redhat.com>2024-07-25 12:37:57 +0200
commit0ada84e3f8c5e76d47725f45082f012a56efe433 (patch)
tree40515dc753f4d35b1b49b73feba52f3a0bb05a59 /passt.1
parent4a333c88d7fcec8764c2b485f983a86fec534821 (diff)
downloadpasst-0ada84e3f8c5e76d47725f45082f012a56efe433.tar
passt-0ada84e3f8c5e76d47725f45082f012a56efe433.tar.gz
passt-0ada84e3f8c5e76d47725f45082f012a56efe433.tar.bz2
passt-0ada84e3f8c5e76d47725f45082f012a56efe433.tar.lz
passt-0ada84e3f8c5e76d47725f45082f012a56efe433.tar.xz
passt-0ada84e3f8c5e76d47725f45082f012a56efe433.tar.zst
passt-0ada84e3f8c5e76d47725f45082f012a56efe433.zip
fwd: Refactor tests in fwd_nat_from_tap() for clarity
Currently, we start by handling the common case, where we don't translate the destination address, then we modify the tgt side for the special cases. In the process we do comparisons on the tentatively set fields in tgt, which obscures the fact that tgt should be an essentially pure function of ini, and risks people examining fields of tgt that are not yet initialized. To make this clearer, do all our tests on 'ini', constructing tgt from scratch on that basis. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'passt.1')
0 files changed, 0 insertions, 0 deletions