diff options
Diffstat (limited to 'android/main.c')
-rw-r--r-- | android/main.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/android/main.c b/android/main.c index 03d0ffd..c03280d 100644 --- a/android/main.c +++ b/android/main.c @@ -61,7 +61,6 @@ #include "hw/goldfish_nand.h" #include "android/globals.h" -#include "tcpdump.h" #include "android/qemulator.h" #include "android/display.h" @@ -1153,12 +1152,6 @@ int main(int argc, char **argv) opts->trace = tracePath; } - if (opts->tcpdump) { - if (qemu_tcpdump_start(opts->tcpdump) < 0) { - dwarning( "could not start packet capture: %s", strerror(errno)); - } - } - if (opts->no_cache) opts->cache = 0; @@ -1190,6 +1183,11 @@ int main(int argc, char **argv) } } + if (opts->tcpdump) { + args[n++] = "-tcpdump"; + args[n++] = opts->tcpdump; + } + #ifdef CONFIG_NAND_LIMITS if (opts->nand_limits) { args[n++] = "-nand-limits"; |