rtnl_link: print IFLA_NEW_IFINDEX using decode_nla_ifindex
As it is an interface index. * rtnl_link.c (ifinfomsg_nla_decoders) <[IFLA_NEW_IFINDEX]>: Change the value from decode_nla_s32 to decode_nla_ifindex.
This commit is contained in:
parent
c802a67751
commit
8783de909c
@ -441,7 +441,7 @@ static const nla_decoder_t ifinfomsg_nla_decoders[] = {
|
||||
[IFLA_IF_NETNSID] = decode_nla_s32,
|
||||
[IFLA_CARRIER_UP_COUNT] = decode_nla_u32,
|
||||
[IFLA_CARRIER_DOWN_COUNT] = decode_nla_u32,
|
||||
[IFLA_NEW_IFINDEX] = decode_nla_s32,
|
||||
[IFLA_NEW_IFINDEX] = decode_nla_ifindex,
|
||||
};
|
||||
|
||||
DECL_NETLINK_ROUTE_DECODER(decode_ifinfomsg)
|
||||
|
Loading…
x
Reference in New Issue
Block a user