mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-25 16:14:51 +00:00
l2tp: no need to export session offsets in JSON output
The offset and peer_offset parameters are only printed to avoid confusing external scripts that may parse "ip l2tp show session" output. There's no reason to keep them in JSON. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
This commit is contained in:
parent
0927bf83e7
commit
458539ad35
@ -306,8 +306,9 @@ static void print_session(struct l2tp_data *data)
|
|||||||
print_string(PRINT_FP, NULL, "%s", _SL_);
|
print_string(PRINT_FP, NULL, "%s", _SL_);
|
||||||
}
|
}
|
||||||
|
|
||||||
print_uint(PRINT_ANY, "offset", " offset %u,", 0);
|
/* Show offsets only for plain console output (for legacy scripts) */
|
||||||
print_uint(PRINT_ANY, "peer_offset", " peer offset %u\n", 0);
|
print_uint(PRINT_FP, "offset", " offset %u,", 0);
|
||||||
|
print_uint(PRINT_FP, "peer_offset", " peer offset %u\n", 0);
|
||||||
|
|
||||||
if (p->cookie_len > 0)
|
if (p->cookie_len > 0)
|
||||||
print_cookie("cookie", "cookie",
|
print_cookie("cookie", "cookie",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user