mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
create always a dump file to analyze the network traffic
This commit is contained in:
parent
6a7ae04d2e
commit
ccc5a0eb37
1 changed files with 7 additions and 5 deletions
|
@ -268,6 +268,12 @@ static int init_qemu(char *path)
|
|||
qemu_argv[i+1] = "SandyBridge";
|
||||
}*/
|
||||
|
||||
for(i=0; qemu_argv[i] != NULL; i++)
|
||||
;
|
||||
// add flags to create dump of the network traffic
|
||||
qemu_argv[i] = "-net";
|
||||
qemu_argv[i+1] = "dump";
|
||||
|
||||
str = getenv("HERMIT_VERBOSE");
|
||||
if (str)
|
||||
{
|
||||
|
@ -275,11 +281,7 @@ static int init_qemu(char *path)
|
|||
|
||||
for(i=0; qemu_argv[i] != NULL; i++)
|
||||
printf("%s ", qemu_argv[i]);
|
||||
|
||||
// add flags to create dump of the network traffic
|
||||
qemu_argv[i] = "-net";
|
||||
qemu_argv[i+1] = "dump";
|
||||
printf("%s %s\n", qemu_argv[i], qemu_argv[i+1]);
|
||||
printf("\n");
|
||||
|
||||
fflush(stdout);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue