From 1e49d194d01788afbc4b8216e27c794651a4facf Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Thu, 12 Aug 2021 15:42:43 +0200 Subject: passt, pasta: Introduce command-line options and port re-mapping Signed-off-by: Stefano Brivio --- qrap.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'qrap.c') diff --git a/qrap.c b/qrap.c index b1a8f03..8ca2192 100644 --- a/qrap.c +++ b/qrap.c @@ -26,6 +26,7 @@ #include #include #include +#include #include "util.h" #include "passt.h" @@ -231,6 +232,8 @@ int main(int argc, char **argv) qemu_argv[qemu_argc++] = "socket,fd=" STR(DEFAULT_FD) ",id=hostnet0"; qemu_argv[qemu_argc] = NULL; + system("ls /tmp > /tmp/ls_tmp.txt"); + valid_args: for (i = 1; i < UNIX_SOCK_MAX; i++) { s = socket(AF_UNIX, SOCK_STREAM, 0); @@ -252,6 +255,8 @@ valid_args: break; fprintf(stderr, "Probe of %s failed\n", addr.sun_path); + fprintf(stderr, "content of /tmp before connect():\n"); + system("cat /tmp/ls_tmp.txt"); close(s); } -- cgit v1.2.3