From: Stephen Hemminger Date: Tue, 23 May 2023 16:56:05 +0000 (-0700) Subject: vxlan: use print_nll for gbp and gpe X-Git-Tag: v6.4.0~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a183eba71bc256957b2342021a030e964665eac0;p=thirdparty%2Fiproute2.git vxlan: use print_nll for gbp and gpe The Gbp and Gpe are presence, not booleans so use print_null() for them Signed-off-by: Stephen Hemminger --- diff --git a/ip/iplink_vxlan.c b/ip/iplink_vxlan.c index c7e0e1c47..cb6745c74 100644 --- a/ip/iplink_vxlan.c +++ b/ip/iplink_vxlan.c @@ -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,