char *argv[] = { "tcpdump", "-i", interface, NULL };
// child process have a pipe to the parent process when parent process terminates SIGPIPE kills the tcpdump
int pipes[2];
assert(pipe(pipes) != -1);
PRINT_TEST_CASE_MSG("\x1b[32mLaunching TCP Dump ..\x1b[0m\n");
char *argv[] = { "tcpdump", "-i", interface, NULL };
// child process have a pipe to the parent process when parent process terminates SIGPIPE kills the tcpdump
int pipes[2];
assert(pipe(pipes) != -1);
PRINT_TEST_CASE_MSG("\x1b[32mLaunching TCP Dump ..\x1b[0m\n");