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:
Eugene Syromyatnikov 2018-05-07 08:38:18 +02:00 committed by Dmitry V. Levin
parent c802a67751
commit 8783de909c

View File

@ -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)