iproute2/include
Petr Machata 2b8766663d lib: utils: Introduce parse_one_of_deprecated()
The function parse_one_of() currently uses matches() for string comparison
under the hood. Extending matches()-based parsers is tricky, because newly
added matches might change the way strings are parsed, if the newly-added
string shares a prefix with a string that is matched later in the code.

In this patch, introduce a new function, parse_one_of_deprecated(). This
will be currently synonymous with parse_one_of(), however the latter will
change behavior in the next patch.

Use the new function for parsing of the macsec "validate" option. The
reason is that the valid strings for that option are "disabled", "check"
and "strict". It is not hard to see how "disabled" could be misspelled as
"disable", and be baked in some script in this form.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
2023-11-22 19:32:09 +00: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 2023-11-06 10:08:23 -07:00
bpf_api.h include: dual license the bpf helper includes 2023-07-22 09:30:14 -07:00
bpf_elf.h include: dual license the bpf helper includes 2023-07-22 09:30:14 -07:00
bpf_scm.h SPDX license identifiers 2017-11-24 12:21:35 -08:00
bpf_util.h bpf: increase verifier verbosity when in verbose mode 2023-10-27 16:56:55 +00:00
cg_map.h Add missing SPDX headers 2023-07-22 09:30:36 -07:00
color.h lib/color: make local functions static 2018-11-19 11:42:44 -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 remove trailing whitespace 2021-04-27 11:55:53 -07:00
json_print.h Add missing SPDX headers 2023-07-22 09:30:36 -07:00
json_writer.h Merge branch 'iproute2-master' into iproute2-next 2018-12-19 12:02:17 -08:00
libgenl.h mptcp: add support for event monitoring 2021-04-22 05:10:25 +00:00
libnetlink.h libnetlink: drop unused rtnl_talk_iov 2023-06-02 09:33:34 -07:00
list.h devlink: Add support for devlink resource abstraction 2018-02-23 08:36:05 -08:00
ll_map.h ll_map: Add function to remove link cache entry by index 2019-02-22 18:51:15 -08:00
mnl_utils.h mnl_utils: introduce a helper to check if dump policy exists for command 2023-09-11 09:16:45 -06:00
names.h tc: drop unused name_to_id function 2018-11-19 11:42:44 -08:00
namespace.h devlink: introduce support for netns id for nested handle 2023-11-11 17:31:29 +00:00
rt_names.h ipaddress: accept symbolic names 2023-06-02 08:51:53 -07:00
rtm_map.h SPDX license identifiers 2017-11-24 12:21:35 -08:00
selinux.h ip vrf: make ipvrf_exec SELinux-aware 2023-08-24 17:34:40 -07:00
utils.h lib: utils: Introduce parse_one_of_deprecated() 2023-11-22 19:32:09 +00:00
version.h v6.5.0 2023-09-06 09:26:52 -07:00
xt-internal.h SPDX license identifiers 2017-11-24 12:21:35 -08:00
xtables.h tc: adjust xtables_match and xtables_target to changes in recent iptables 2019-06-24 16:12:17 -07:00