b.a.t.m.a.n.lists.open-mesh.org archive mirror
 help / color / mirror / Atom feed
From: Sven Eckelmann <sven@narfation.org>
To: b.a.t.m.a.n@lists.open-mesh.org
Cc: Sven Eckelmann <sven@narfation.org>
Subject: [PATCH 0/6] batctl: Use shared batadv genl socket for requests
Date: Mon, 10 May 2021 21:49:39 +0200	[thread overview]
Message-ID: <20210510194945.103735-1-sven@narfation.org> (raw)

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


             reply	other threads:[~2021-05-10 19:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-10 19:49 Sven Eckelmann [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210510194945.103735-1-sven@narfation.org \
    --to=sven@narfation.org \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).