]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ip: allow to use alternative names as handle
authorJiri Pirko <jiri@mellanox.com>
Thu, 24 Oct 2019 10:20:52 +0000 (12:20 +0200)
committerDavid Ahern <dsahern@gmail.com>
Mon, 28 Oct 2019 14:35:29 +0000 (07:35 -0700)
commitafd67550c2c4efd428e445f5605785263bd0602d
tree08d3b989666eb6d57eb8ff151247f2170d551518
parent3aa0e51be64b47fed8fcf24c4edd1f81b276f5bc
ip: allow to use alternative names as handle

Extend ll_name_to_index() to get the index of a netdevice using
alternative interface name. Allow alternative long names to pass checks
in couple of ip link/addr commands.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
ip/iplink.c
lib/ll_map.c