iproute2/bridge
Serhey Popovych fcac966526 utils: Introduce and use get_ifname_rta()
Be consistent in handling of IFLA_IFNAME attribute in all places: if
there is no attribute report bug to stderr and use ll_idx_n2a() as
last measure to get name in "if%u" format instead of "<nil>".

Use check_ifname() to validate network device name: this catches both
unexpected return from kernel and ll_idx_n2a().

Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
2018-02-16 08:14:20 -08:00
..
.gitignore Add bridge command 2012-08-01 15:23:49 -07:00
Makefile SPDX license identifiers 2017-11-24 12:21:35 -08:00
br_common.h SPDX license identifiers 2017-11-24 12:21:35 -08:00
bridge.c SPDX license identifiers 2017-11-24 12:21:35 -08:00
fdb.c iplink: Use ll_name_to_index() instead of if_nametoindex() 2018-01-23 14:50:59 -08:00
link.c utils: Introduce and use get_ifname_rta() 2018-02-16 08:14:20 -08:00
mdb.c iplink: Use ll_name_to_index() instead of if_nametoindex() 2018-01-23 14:50:59 -08:00
monitor.c scrub out whitespace issues 2016-03-27 10:50:14 -07:00
vlan.c iplink: Use ll_name_to_index() instead of if_nametoindex() 2018-01-23 14:50:59 -08:00