]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
vxlan: use print_nll for gbp and gpe
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 23 May 2023 16:56:05 +0000 (09:56 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 30 May 2023 19:32:22 +0000 (12:32 -0700)
The Gbp and Gpe are presence, not booleans so use print_null()
for them

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/iplink_vxlan.c

index c7e0e1c47606c973d5b9f679e10f29cc0969987e..cb6745c745074b091587c0d8c03565dd3eb5ff12 100644 (file)
@@ -650,9 +650,9 @@ static void vxlan_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[])
                print_bool(PRINT_ANY, "remcsum_rx", "remcsumrx ", true);
 
        if (tb[IFLA_VXLAN_GBP])
-               print_bool(PRINT_ANY, "gbp", "gbp ", true);
+               print_null(PRINT_ANY, "gbp", "gbp ", NULL);
        if (tb[IFLA_VXLAN_GPE])
-               print_bool(PRINT_ANY, "gpe", "gpe ", true);
+               print_null(PRINT_ANY, "gpe", "gpe ", NULL);
 }
 
 static void vxlan_print_help(struct link_util *lu, int argc, char **argv,