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>
---
Matthieu Baerts (NGI0) (3):
mptcp: uniform stream closure
utils: timestamp: add JSON support
mptcp: monitor: add JSON support
ip/ipmptcp.c | 96 +++++++++++++++++++++++++++++++++++++++++-------------------
lib/utils.c | 19 ++++++++----
2 files changed, 80 insertions(+), 35 deletions(-)
---
base-commit: f120cdb35da76ca99932d0428a0917bd01a843da
change-id: 20260220-ipr-monitor-json-1573371524c1
Best regards,
--
Matthieu Baerts (NGI0) [off-list ref]