From 6f89dc3650847e970dd9d0d5c986793e22b73a00 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Mon, 10 May 2021 12:38:50 +0200 Subject: qrap: Find qemu command if not passed, patch command line It might be impractical to pass options to qrap when using libvirt, because the tag expects a path to an executable, without further arguments. If the first argument is not a plausible socket number, and the second argument is not a valid executable, look up a qemu command from a list of possible names, then start it patching the command line to include the -netdev fd= parameter corresponding to the AF_UNIX domain socket we just opened. Signed-off-by: Stefano Brivio --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 326e717..213020b 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ passt: passt.c passt.h arp.c arp.h dhcp.c dhcp.h dhcpv6.c dhcpv6.h ndp.c ndp.h s $(CC) $(CFLAGS) passt.c arp.c dhcp.c dhcpv6.c ndp.c siphash.c tap.c icmp.c tcp.c udp.c util.c -o passt qrap: qrap.c passt.h - $(CC) $(CFLAGS) qrap.c -o qrap + $(CC) $(CFLAGS) -DARCH=\"$(shell uname -m)\" qrap.c -o qrap .PHONY: clean clean: -- cgit v1.2.3