diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2021-05-10 12:38:50 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2021-05-10 12:38:50 +0200 |
commit | 6f89dc3650847e970dd9d0d5c986793e22b73a00 (patch) | |
tree | 7b110d3cf5374a5cc68274ec31eea12c9f1978dd /Makefile | |
parent | c8581f3710335ae6be68909c1c8307aa66990428 (diff) | |
download | passt-6f89dc3650847e970dd9d0d5c986793e22b73a00.tar passt-6f89dc3650847e970dd9d0d5c986793e22b73a00.tar.gz passt-6f89dc3650847e970dd9d0d5c986793e22b73a00.tar.bz2 passt-6f89dc3650847e970dd9d0d5c986793e22b73a00.tar.lz passt-6f89dc3650847e970dd9d0d5c986793e22b73a00.tar.xz passt-6f89dc3650847e970dd9d0d5c986793e22b73a00.tar.zst passt-6f89dc3650847e970dd9d0d5c986793e22b73a00.zip |
qrap: Find qemu command if not passed, patch command line
It might be impractical to pass options to qrap when using libvirt,
because the <emulator/> 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 <sbrivio@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |