eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit f37966a24dcaae12cd74e7ba77ab592074db3103
parent 689a1ed8581f76b88c28ae0cd889b01e2623b290
Author: James Prestwood <prestwoj@gmail.com>
Date:   Thu,  2 Apr 2020 10:01:56 -0700

test-runner: create pcap when logging

Diffstat:
Mtools/test-runner.c | 16+++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/tools/test-runner.c b/tools/test-runner.c @@ -1606,14 +1606,24 @@ static void terminate_iwd(pid_t iwd_pid) static pid_t start_monitor(const char *test_name) { - char *argv[4]; + char *argv[6]; + char *write_arg; + pid_t pid; + + write_arg = l_strdup_printf("%s/%s/monitor.pcap", log_dir, test_name); argv[0] = "iwmon"; argv[1] = "--nortnl"; argv[2] = "--nowiphy"; - argv[3] = NULL; + argv[3] = "--write"; + argv[4] = write_arg; + argv[5] = NULL; - return execute_program(argv, environ, false, test_name); + pid = execute_program(argv, environ, false, test_name); + + l_free(write_arg); + + return pid; } static bool create_tmpfs_extra_stuff(char **tmpfs_extra_stuff)