On Thursday, 13 May 2021 16:10:34 CEST Alexander Sarmanow wrote:
DEBUGJSON commands require an own handler, since they may have their own parameters. So far there is currently only the help parameter, but more can be added in future.
Signed-off-by: Alexander Sarmanow asarmanow@gmail.com
debug.c | 29 +++++++++++++++++++++++++++++ debug.h | 5 +++++ 2 files changed, 34 insertions(+)
diff --git a/debug.c b/debug.c index 458c137..20467c7 100644 --- a/debug.c +++ b/debug.c
These commands are not for debug tables and would better fit in the the genl_json file (or something similar).
And a lot of functionality is missing here. You basically duplicated the same function in the actual neighbors_json, originators_json, transglobal_json and translocal_json files. Stuff which could have been handled globally for the netlink queries with JSON output.
Kind regards, Sven