Re: [PATCH iproute2-next v2 4/6] utils: Introduce and use get_ifname_rta()

2018-01-31 Thread David Ahern
On 1/30/18 11:09 AM, Serhey Popovych wrote: > Be consistent in handling of IFLA_IFNAME attribute in all places: if > there is no attribute report bug to stderr and use ll_index_to_name() as > last measure to get name in "if%d" format instead of "". > > Use check_ifname() to validate network device

[PATCH iproute2-next v2 4/6] utils: Introduce and use get_ifname_rta()

2018-01-30 Thread Serhey Popovych
Be consistent in handling of IFLA_IFNAME attribute in all places: if there is no attribute report bug to stderr and use ll_index_to_name() as last measure to get name in "if%d" format instead of "". Use check_ifname() to validate network device name: this catches both unexpected return from kernel