Skip to content

batctl: Use shared batadv genl socket for requests

Sven Eckelmann batman 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6batctl: Consume genl ACKs after setting readssys.c+7 -10 replies
2/6batctl: throughputmeter: Use global genl socketthroughputmeter.c+21 -840 replies
3/6batctl: interface: List using shared genl socketinterface.c+31 -460 replies
4/6batctl: Get meshif info using shared genl socketgateways.c mcast_flags.c netlink.c +2 more+17 -340 replies
5/6batctl: Use common genl socket for netlink_query_commonfunctions.c functions.h gw_mode.c +8 more+84 -880 replies
6/6batctl: routing_algo: List using shared genl socketrouting_algo.c+17 -360 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] batctl: Use shared batadv genl socket for requests

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(-)
Signature · 1 line
2.30.2