public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] batctl: Add generic JSON interface
@ 2021-05-13 14:02 Alexander Sarmanow
  2021-05-13 14:02 ` [PATCH v3 1/2] batctl: netlink: Make netlink_query_common non-static Alexander Sarmanow
  2021-05-13 14:02 ` [PATCH v3 2/2] batctl: genl_json: Add generic JSON interface Alexander Sarmanow
  0 siblings, 2 replies; 4+ messages in thread
From: Alexander Sarmanow @ 2021-05-13 14:02 UTC (permalink / raw)
  To: sven; +Cc: b.a.t.m.a.n, sw, Alexander Sarmanow

For the missing JSON debug print a generic JSON print interface is
proposed.
A specific nla_policy is describing (a) the key name of the entry and
(b) the corresponding callback function for printing the value.
If the netlink attribute is not at disposal no entry for that will be
printed.

This patch reffering to following patches:

[1] https://lists.open-mesh.org/mailman3/hyperkitty/list/b.a.t.m.a.n@lists.open-mesh.org/thread/SAQYUZQ7I7H7VWHFPVLBUDYCFX7HNWLO/
[2] https://lists.open-mesh.org/mailman3/hyperkitty/list/b.a.t.m.a.n@lists.open-mesh.org/thread/IV2OFJ2KJX52K4ARZ5MIWZ2A42WOKJRO/
[3] https://lists.open-mesh.org/mailman3/hyperkitty/list/b.a.t.m.a.n@lists.open-mesh.org/thread/EYQBFU5O7E3KKRG2YVPLRGHHN3OFIPYP/
[4] https://lists.open-mesh.org/mailman3/hyperkitty/list/b.a.t.m.a.n@lists.open-mesh.org/thread/WKIBP64G27O23MBAPHECSKNJMUESWFAG/
[5] https://lists.open-mesh.org/mailman3/hyperkitty/list/b.a.t.m.a.n@lists.open-mesh.org/thread/Y3XXIYCJWME4CQNWRBIRYJ6ZOL4MI2FT/
[6] https://lists.open-mesh.org/mailman3/hyperkitty/list/b.a.t.m.a.n@lists.open-mesh.org/thread/LYMU5ZA3I6YVHHRZVY3RJJR4KDHF76QI/

Alexander Sarmanow (2):
  batctl: netlink: Make netlink_query_common non-static
  batctl: genl_json: Add generic JSON interface

 Makefile    |   1 +
 genl_json.c | 359 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 genl_json.h |  24 ++++
 netlink.c   |  12 +-
 netlink.h   |  14 ++
 5 files changed, 402 insertions(+), 8 deletions(-)
 create mode 100644 genl_json.c
 create mode 100644 genl_json.h

-- 
2.25.1


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

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

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-13 14:02 [PATCH v3 0/2] batctl: Add generic JSON interface Alexander Sarmanow
2021-05-13 14:02 ` [PATCH v3 1/2] batctl: netlink: Make netlink_query_common non-static Alexander Sarmanow
2021-05-13 14:02 ` [PATCH v3 2/2] batctl: genl_json: Add generic JSON interface Alexander Sarmanow
2021-05-14 10:58   ` Sven Eckelmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox