]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
l2tp: fix typo in AF_INET6 checksum JSON print
authorAndrea Claudi <aclaudi@redhat.com>
Tue, 21 Jun 2022 16:53:08 +0000 (18:53 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 21 Jun 2022 22:35:29 +0000 (15:35 -0700)
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: 98453b65800f ("ip/l2tp: add JSON support")
Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/ipl2tp.c

index 569723581ec240d76f6d9d02f61559701fabed2d..f1d574de31e3521c6c2735b215b39f256fae5947 100644 (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