1
0
mirror of https://passt.top/passt synced 2024-11-09 22:29:56 +00:00
passt/test/passt_in_ns
David Gibson e813a4df7d conf: Allow address remapped to host to be configured
Because the host and guest share the same IP address with passt/pasta, it's
not possible for the guest to directly address the host.  Therefore we
allow packets from the guest going to a special "NAT to host" address to be
redirected to the host, appearing there as though they have both source and
destination address of loopback.

Currently that special address is always the address of the default
gateway (or none).  That can be a problem if we want that gateway to be
addressable by the guest.  Therefore, allow the special "NAT to host"
address to be overridden on the command line with a new --map-host-loopback
option.

In order to exercise and test it, update the passt_in_ns and perf
tests to use this option and give different mapping addresses for the
two layers of the environment.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
2024-08-21 12:00:35 +02:00
..
dhcp conf: Allow address remapped to host to be configured 2024-08-21 12:00:35 +02:00
icmp passt: Relicense to GPL 2.0, or any later version 2023-04-06 18:00:33 +02:00
shutdown passt: Relicense to GPL 2.0, or any later version 2023-04-06 18:00:33 +02:00
tcp conf: Allow address remapped to host to be configured 2024-08-21 12:00:35 +02:00
udp conf: Allow address remapped to host to be configured 2024-08-21 12:00:35 +02:00