b.a.t.m.a.n.lists.open-mesh.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] batctl: Use shared batadv genl socket for requests
@ 2021-05-10 19:49 Sven Eckelmann
  2021-05-10 19:49 ` [PATCH 1/6] batctl: Consume genl ACKs after setting reads Sven Eckelmann
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Sven Eckelmann @ 2021-05-10 19:49 UTC (permalink / raw)
  To: b.a.t.m.a.n; +Cc: Sven Eckelmann

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(-)

-- 
2.30.2


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-05-10 19:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-10 19:49 [PATCH 0/6] batctl: Use shared batadv genl socket for requests Sven Eckelmann
2021-05-10 19:49 ` [PATCH 1/6] batctl: Consume genl ACKs after setting reads Sven Eckelmann
2021-05-10 19:49 ` [PATCH 2/6] batctl: throughputmeter: Use global genl socket Sven Eckelmann
2021-05-10 19:49 ` [PATCH 3/6] batctl: interface: List using shared " Sven Eckelmann
2021-05-10 19:49 ` [PATCH 4/6] batctl: Get meshif info " Sven Eckelmann
2021-05-10 19:49 ` [PATCH 5/6] batctl: Use common genl socket for netlink_query_common Sven Eckelmann
2021-05-10 19:49 ` [PATCH 6/6] batctl: routing_algo: List using shared genl socket Sven Eckelmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).