It was noticed that quite a lot of functions create their own netlink socket just to talk to batman-adv. This is related to the old sysfs compat code which was removed in 2021.0. So restructure the code to make use of the existing global information in the state object.
Kind regards, Sven
Sven Eckelmann (6): batctl: Consume genl ACKs after setting reads batctl: throughputmeter: Use global genl socket batctl: interface: List using shared genl socket batctl: Get meshif info using shared genl socket batctl: Use common genl socket for netlink_query_common batctl: routing_algo: List using shared genl socket
functions.c | 15 +++--- functions.h | 5 +- gateways.c | 3 +- gw_mode.c | 3 +- icmp_helper.c | 14 +++--- icmp_helper.h | 2 +- interface.c | 77 ++++++++++++----------------- mcast_flags.c | 3 +- netlink.c | 121 +++++++++++++++++----------------------------- netlink.h | 12 ++--- originators.c | 3 +- ping.c | 7 +-- routing_algo.c | 74 +++++++++++++--------------- sys.c | 8 ++- throughputmeter.c | 105 ++++++++-------------------------------- traceroute.c | 7 +-- translate.c | 5 +- 17 files changed, 176 insertions(+), 288 deletions(-)