diff options
| author | Andrey Konovalov <andreyknvl@google.com> | 2017-05-18 16:08:43 +0200 |
|---|---|---|
| committer | Andrey Konovalov <andreyknvl@google.com> | 2017-06-12 19:48:23 +0200 |
| commit | 4d1df73af9a6d40d3111e3f2a7dfb9f138fbde4b (patch) | |
| tree | 48e66cf8d6f91fa3bcabc60ee94ca070befef0af /executor/common.h | |
| parent | 10c9064bfc4890e5895057021280a0558131e3eb (diff) | |
csource: force enable tun flag when required
Diffstat (limited to 'executor/common.h')
| -rw-r--r-- | executor/common.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/executor/common.h b/executor/common.h index 032365471..934f98cf5 100644 --- a/executor/common.h +++ b/executor/common.h @@ -627,21 +627,13 @@ static uintptr_t execute_syscall(int nr, uintptr_t a0, uintptr_t a1, uintptr_t a case __NR_syz_fuseblk_mount: return syz_fuseblk_mount(a0, a1, a2, a3, a4, a5, a6, a7); #endif -#if defined(__NR_syz_emit_ethernet) +#ifdef __NR_syz_emit_ethernet case __NR_syz_emit_ethernet: -#if defined(SYZ_EXECUTOR) || defined(SYZ_TUN_ENABLE) return syz_emit_ethernet(a0, a1); -#else - return 0; -#endif #endif -#if defined(__NR_syz_extract_tcp_res) +#ifdef __NR_syz_extract_tcp_res case __NR_syz_extract_tcp_res: -#if defined(SYZ_EXECUTOR) || defined(SYZ_TUN_ENABLE) return syz_extract_tcp_res(a0, a1, a2); -#else - return 0; -#endif #endif #ifdef __NR_syz_kvm_setup_cpu case __NR_syz_kvm_setup_cpu: |
