mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-08-14 13:17:42 +00:00
gre/tunnel: Print erspan_index using print_uint()
One is missing in JSON output because fprintf() is used instead of print_uint(). Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
bad76e6b1f
commit
2a8d0f6e9c
@ -465,7 +465,8 @@ static void gre_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[])
|
|||||||
if (tb[IFLA_GRE_ERSPAN_INDEX]) {
|
if (tb[IFLA_GRE_ERSPAN_INDEX]) {
|
||||||
__u32 erspan_idx = rta_getattr_u32(tb[IFLA_GRE_ERSPAN_INDEX]);
|
__u32 erspan_idx = rta_getattr_u32(tb[IFLA_GRE_ERSPAN_INDEX]);
|
||||||
|
|
||||||
fprintf(f, "erspan_index %u ", erspan_idx);
|
print_uint(PRINT_ANY,
|
||||||
|
"erspan_index", "erspan_index %u ", erspan_idx);
|
||||||
}
|
}
|
||||||
|
|
||||||
tnl_print_encap(tb,
|
tnl_print_encap(tb,
|
||||||
|
@ -513,7 +513,9 @@ static void gre_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[])
|
|||||||
|
|
||||||
if (tb[IFLA_GRE_ERSPAN_INDEX]) {
|
if (tb[IFLA_GRE_ERSPAN_INDEX]) {
|
||||||
__u32 erspan_idx = rta_getattr_u32(tb[IFLA_GRE_ERSPAN_INDEX]);
|
__u32 erspan_idx = rta_getattr_u32(tb[IFLA_GRE_ERSPAN_INDEX]);
|
||||||
fprintf(f, "erspan_index %u ", erspan_idx);
|
|
||||||
|
print_uint(PRINT_ANY,
|
||||||
|
"erspan_index", "erspan_index %u ", erspan_idx);
|
||||||
}
|
}
|
||||||
|
|
||||||
tnl_print_encap(tb,
|
tnl_print_encap(tb,
|
||||||
|
Loading…
Reference in New Issue
Block a user