Skip to content

batctl: Add generic JSON interface

Alexander Sarmanow batman 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 1 replyIn review
  2. v22 patches 6 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2batctl: netlink: Make netlink_query_common non-staticnetlink.c netlink.h+12 -80 replies
2/2batctl: genl_json: Add generic JSON interfaceMakefile genl_json.c genl_json.h +1 more+390 -01 reply

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/2] batctl: Add generic JSON interface

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/[email protected]/thread/SAQYUZQ7I7H7VWHFPVLBUDYCFX7HNWLO/
[2] https://lists.open-mesh.org/mailman3/hyperkitty/list/[email protected]/thread/IV2OFJ2KJX52K4ARZ5MIWZ2A42WOKJRO/
[3] https://lists.open-mesh.org/mailman3/hyperkitty/list/[email protected]/thread/EYQBFU5O7E3KKRG2YVPLRGHHN3OFIPYP/
[4] https://lists.open-mesh.org/mailman3/hyperkitty/list/[email protected]/thread/WKIBP64G27O23MBAPHECSKNJMUESWFAG/
[5] https://lists.open-mesh.org/mailman3/hyperkitty/list/[email protected]/thread/Y3XXIYCJWME4CQNWRBIRYJ6ZOL4MI2FT/
[6] https://lists.open-mesh.org/mailman3/hyperkitty/list/[email protected]/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
Signature · 1 line
2.25.1