From 8e4c2e24cb05daf27a600b570d3a774083a1210b Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 6 Apr 2018 17:25:54 +0200 Subject: executor: create team device --- pkg/csource/linux_common.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'pkg/csource/linux_common.go') diff --git a/pkg/csource/linux_common.go b/pkg/csource/linux_common.go index 4e7b0fef4..84cfa9aa2 100644 --- a/pkg/csource/linux_common.go +++ b/pkg/csource/linux_common.go @@ -455,11 +455,13 @@ static void execute_command(bool panic, const char* format, ...) va_start(args, format); memcpy(command, PATH_PREFIX, PATH_PREFIX_LEN); vsnprintf_check(command + PATH_PREFIX_LEN, COMMAND_MAX_LEN, format, args); - rv = system(command); - if (panic && rv != 0) - fail("tun: command \"%s\" failed with code %d", &command[0], rv); - va_end(args); + rv = system(command); + if (rv) { + if (panic) + fail("command '%s' failed: %d", &command[0], rv); + debug("command '%s': %d\n", &command[0], rv); + } } static int tunfd = -1; @@ -546,11 +548,11 @@ static void initialize_tun(void) static void initialize_netdevices(void) { unsigned i; - const char* devtypes[] = {"ip6gretap", "bridge", "vcan", "bond", "veth"}; + const char* devtypes[] = {"ip6gretap", "bridge", "vcan", "bond", "veth", "team"}; const char* devnames[] = {"lo", "sit0", "bridge0", "vcan0", "tunl0", "gre0", "gretap0", "ip_vti0", "ip6_vti0", "ip6tnl0", "ip6gre0", "ip6gretap0", - "erspan0", "bond0", "veth0", "veth1"}; + "erspan0", "bond0", "veth0", "veth1", "team0"}; #ifdef SYZ_EXECUTOR if (!flag_enable_tun) -- cgit mrf-deployment