aboutgitcodebugslistschat
path: root/dhcp.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-08-21 14:20:12 +1000
committerStefano Brivio <sbrivio@redhat.com>2024-08-21 12:00:23 +0200
commit4d8dd1fbe789683aea02569e6a00be47693e8913 (patch)
tree8338c7cb71bc147fa6706b18687376e7b70c9bfb /dhcp.c
parent975cfa5f3255ae0ece3cdeda33675076b17be1c7 (diff)
downloadpasst-4d8dd1fbe789683aea02569e6a00be47693e8913.tar
passt-4d8dd1fbe789683aea02569e6a00be47693e8913.tar.gz
passt-4d8dd1fbe789683aea02569e6a00be47693e8913.tar.bz2
passt-4d8dd1fbe789683aea02569e6a00be47693e8913.tar.lz
passt-4d8dd1fbe789683aea02569e6a00be47693e8913.tar.xz
passt-4d8dd1fbe789683aea02569e6a00be47693e8913.tar.zst
passt-4d8dd1fbe789683aea02569e6a00be47693e8913.zip
fwd: Helpers to clarify what host addresses aren't guest accessible
We usually avoid NAT, but in a few cases we need to apply address translations. For inbound connections that happens for addresses which make sense to the host but are either inaccessible, or mean a different location from the guest's point of view. Add some helper functions to determine such addresses, and use them in fwd_nat_from_host(). In doing so clarify some of the reasons for the logic. We'll also have further use for these helpers in future. While we're there fix one unneccessary inconsistency between IPv4 and IPv6. We always translated the guest's observed address, but for IPv4 we didn't translate the guest's assigned address, whereas for IPv6 we did. Change this to translate both in all cases for consistency. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'dhcp.c')
0 files changed, 0 insertions, 0 deletions