mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-04 21:03:26 +00:00
![]() The function parse_mapping() assumes the key is a number, with a single configurable exception, which is using "all" to mean "all possible keys". If a caller wishes to use symbolic names instead of numbers, they cannot reuse this function. To facilitate reuse in these situations, convert parse_mapping() into a helper, parse_mapping_gen(), which instead of an allow-all boolean takes a generic key-parsing callback. Rewrite parse_mapping() in terms of this newly-added helper and add a pair of key parsers, one for just numbers, another for numbers and the keyword "all". Publish the latter as well. Signed-off-by: Petr Machata <me@pmachata.org> Signed-off-by: David Ahern <dsahern@kernel.org> |
||
---|---|---|
.. | ||
bpf_glue.c | ||
bpf_legacy.c | ||
bpf_libbpf.c | ||
cg_map.c | ||
color.c | ||
coverity_model.c | ||
exec.c | ||
fs.c | ||
inet_proto.c | ||
json_print.c | ||
json_writer.c | ||
libgenl.c | ||
libnetlink.c | ||
ll_addr.c | ||
ll_map.c | ||
ll_proto.c | ||
ll_types.c | ||
Makefile | ||
mnl_utils.c | ||
mpls_ntop.c | ||
mpls_pton.c | ||
names.c | ||
namespace.c | ||
rt_names.c | ||
utils.c |