With this series, the command 'ip [-t[s]] mptcp monitor' produces an
output with the JSON format.
- Patch 1: a small refactoring to uniform the code.
- Patch 2: add JSON support in print_timestamp() helper.
- Patch 3: add JSON support to 'ip mptcp monitor' as requested by
Stephen.
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
---
Changes in v2:
- Patch 1: clearly mention the "fix".
- Patch 2: ignore argument.
- Patch 3: print token with 0xhex, use atexit().
- Link to v1: https://patch.msgid.link/20260220-ipr-monitor-json-v1-0-eb4b0d5f7820@kernel.org
---
Matthieu Baerts (NGI0) (3):
mptcp: uniform stream closure
utils: timestamp: add JSON support
mptcp: monitor: add JSON support
ip/ipmptcp.c | 94 +++++++++++++++++++++++++++++++++++++++++-------------------
lib/utils.c | 12 ++++----
2 files changed, 71 insertions(+), 35 deletions(-)
---
base-commit: f120cdb35da76ca99932d0428a0917bd01a843da
change-id: 20260220-ipr-monitor-json-1573371524c1
Best regards,
--
Matthieu Baerts (NGI0) [off-list ref]