l2tp: fix typo in AF_INET6 checksum JSON print

In print_tunnel json output, a typo makes it impossible to know the
value of udp6_csum_rx, printing instead udp6_csum_tx two times.

Fixed getting rid of the typo.

Fixes: 98453b6580 ("ip/l2tp: add JSON support")
Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
Andrea Claudi 2022-06-21 18:53:08 +02:00 committed by Stephen Hemminger
parent 710d3ab2ce
commit 2bb37e9017

View File

@ -258,7 +258,7 @@ static void print_tunnel(const struct l2tp_data *data)
NULL, p->udp6_csum_tx);
print_bool(PRINT_JSON, "checksum_rx",
NULL, p->udp6_csum_tx);
NULL, p->udp6_csum_rx);
} else {
printf(" UDP checksum: %s%s%s%s\n",
p->udp6_csum_tx && p->udp6_csum_rx