iproute2/include
Serhey Popovych fe269b6e7c utils: Reimplement ll_idx_n2a() and introduce ll_idx_a2n()
Now all users of ll_idx_n2a() replaced with ll_index_to_name() we can
move it's functionality to ll_index_to_name() and implement index to
name conversion using snprintf() and "if%u".

Use %u specifier in "if%..." template consistently: network device
indexes are always greather than zero.

Also introduce ll_idx_n2a() conterpart: ll_idx_a2n() that is used
to translate name of the "if%u" form to index using sscanf().

Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
2018-02-16 08:14:13 -08:00
..
iptables SPDX license identifiers 2017-11-24 12:21:35 -08:00
libiptc SPDX license identifiers 2017-11-24 12:21:35 -08:00
netinet ss: report ecnseen 2011-11-23 14:51:54 -08:00
uapi Update kernel headers to 4.15-rc8 2018-01-19 12:33:41 -08:00
SNAPSHOT.h v4.15.0 2018-01-29 08:08:52 -08:00
bpf_api.h SPDX license identifiers 2017-11-24 12:21:35 -08:00
bpf_elf.h SPDX license identifiers 2017-11-24 12:21:35 -08:00
bpf_scm.h SPDX license identifiers 2017-11-24 12:21:35 -08:00
bpf_util.h bpf: allow loading programs for a specific ifindex 2017-11-26 11:57:57 -08:00
color.h SPDX license identifiers 2017-11-24 12:21:35 -08:00
dlfcn.h SPDX license identifiers 2017-11-24 12:21:35 -08:00
ip6tables.h SPDX license identifiers 2017-11-24 12:21:35 -08:00
iptables.h SPDX license identifiers 2017-11-24 12:21:35 -08:00
json_print.h ip: Use single variable to represent -pretty 2018-02-16 08:13:36 -08:00
json_writer.h json_writer: add new json handlers (null, float with format, lluint, hu) 2017-08-17 18:02:40 -07:00
libgenl.h SPDX license identifiers 2017-11-24 12:21:35 -08:00
libnetlink.h lib/libnetlink: Add a new function rtnl_talk_iov 2018-01-14 09:03:33 -08:00
list.h SPDX license identifiers 2017-11-24 12:21:35 -08:00
ll_map.h utils: Reimplement ll_idx_n2a() and introduce ll_idx_a2n() 2018-02-16 08:14:13 -08:00
names.h SPDX license identifiers 2017-11-24 12:21:35 -08:00
namespace.h SPDX license identifiers 2017-11-24 12:21:35 -08:00
rt_names.h SPDX license identifiers 2017-11-24 12:21:35 -08:00
rtm_map.h SPDX license identifiers 2017-11-24 12:21:35 -08:00
utils.h utils: Introduce and use inet_prefix_reset() 2018-02-14 09:00:26 -08:00
xt-internal.h SPDX license identifiers 2017-11-24 12:21:35 -08:00
xtables.h SPDX license identifiers 2017-11-24 12:21:35 -08:00