1
0
mirror of https://passt.top/passt synced 2024-09-19 14:00:53 +00:00
passt/test/perf
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
..
passt_tcp conf: Allow address remapped to host to be configured 2024-08-21 12:00:35 +02:00
passt_udp conf: Allow address remapped to host to be configured 2024-08-21 12:00:35 +02:00
pasta_tcp conf: Allow address remapped to host to be configured 2024-08-21 12:00:35 +02:00
pasta_udp conf: Allow address remapped to host to be configured 2024-08-21 12:00:35 +02:00