On Sunday, 2 January 2022 12:31:34 CET Marek Lindner wrote: [...]
diff --git a/README.rst b/README.rst
[...]
if (strcmp(globals->mesh_iface, "none") != 0 && batadv_interface_check(globals->mesh_iface) < 0 && !globals->force) { @@ -393,12 +387,6 @@ int alfred_server(struct globals *globals) return -1; }
- num_socks = netsock_open_all(globals);
- if (num_socks <= 0 && !globals->force) {
fprintf(stderr, "Failed to open interfaces\n");
return -1;
- }
- num_interfaces = netsocket_count_interfaces(globals); if (num_interfaces > 1 && globals->opmode == OPMODE_SECONDARY) { fprintf(stderr, "More than one interface specified in secondary mode\n");
This now causes the "--force" option (+its storage in the globals data structure) to be completely useless. I would prefer to have this handling still be there when !list_empty(&globals->interfaces).
And why is it necessary to not open the sockets on startup when interfaces are already given?
Kind regards, Sven