aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-07-13 12:46:32 +0200
committerDmitry Vyukov <dvyukov@google.com>2018-07-13 12:46:32 +0200
commit92a4950507d9d15be9541491300b2201433f6814 (patch)
treed31d41bddc32bd0857187d9b71664f04a7548989 /executor/executor.h
parentfcdb43e97de52b6eab494a8423c350ca45602d88 (diff)
pkg/host: add "network devices" feature
Linux executor sets up some network devices for testing, detect when that's supported on the machine and don't do it if it's not supported.
Diffstat (limited to 'executor/executor.h')
-rw-r--r--executor/executor.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/executor/executor.h b/executor/executor.h
index d3632ae43..1c4bfc523 100644
--- a/executor/executor.h
+++ b/executor/executor.h
@@ -54,6 +54,7 @@ bool flag_cover;
bool flag_sandbox_privs;
sandbox_type flag_sandbox;
bool flag_enable_tun;
+bool flag_enable_net_dev;
bool flag_enable_fault_injection;
bool flag_collect_cover;
@@ -243,7 +244,8 @@ void parse_env_flags(uint64 flags)
else if (flags & (1 << 3))
flag_sandbox = sandbox_namespace;
flag_enable_tun = flags & (1 << 4);
- flag_enable_fault_injection = flags & (1 << 5);
+ flag_enable_net_dev = flags & (1 << 5);
+ flag_enable_fault_injection = flags & (1 << 6);
}
void receive_handshake()