ip/vxlan: fix display of maxaddress option
Parenthesis are required else maxaddr value is a bool and thus output is always 1 when the option is set. Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
This commit is contained in:
parent
c2fbc57ee7
commit
6ad5399c3a
|
|
@ -361,7 +361,7 @@ static void vxlan_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[])
|
|||
}
|
||||
|
||||
if (tb[IFLA_VXLAN_LIMIT] &&
|
||||
(maxaddr = rta_getattr_u32(tb[IFLA_VXLAN_LIMIT]) != 0))
|
||||
((maxaddr = rta_getattr_u32(tb[IFLA_VXLAN_LIMIT])) != 0))
|
||||
fprintf(f, "maxaddr %u ", maxaddr);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue