aboutgitcodebugslistschat
path: root/test/run
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-08-21 14:20:17 +1000
committerStefano Brivio <sbrivio@redhat.com>2024-08-21 12:00:35 +0200
commite813a4df7da28a69ef32642f42fd625aea798967 (patch)
tree081ec82de11eb4f99fc4675ed3ac238d23779f4c /test/run
parentdbaaebbe005321855eeb731ca1fce82e27d2bf47 (diff)
downloadpasst-e813a4df7da28a69ef32642f42fd625aea798967.tar
passt-e813a4df7da28a69ef32642f42fd625aea798967.tar.gz
passt-e813a4df7da28a69ef32642f42fd625aea798967.tar.bz2
passt-e813a4df7da28a69ef32642f42fd625aea798967.tar.lz
passt-e813a4df7da28a69ef32642f42fd625aea798967.tar.xz
passt-e813a4df7da28a69ef32642f42fd625aea798967.tar.zst
passt-e813a4df7da28a69ef32642f42fd625aea798967.zip
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>
Diffstat (limited to 'test/run')
-rwxr-xr-xtest/run4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/run b/test/run
index 3b37663..cd6d707 100755
--- a/test/run
+++ b/test/run
@@ -101,7 +101,7 @@ run() {
VALGRIND=1
setup passt_in_ns
test passt/ndp
- test passt/dhcp
+ test passt_in_ns/dhcp
test passt_in_ns/icmp
test passt_in_ns/tcp
test passt_in_ns/udp
@@ -115,7 +115,7 @@ run() {
VALGRIND=0
setup passt_in_ns
test passt/ndp
- test passt/dhcp
+ test passt_in_ns/dhcp
test perf/passt_tcp
test perf/passt_udp
test perf/pasta_tcp