]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stktable/cli: support v6tov4 and v4tov6 conversions
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 8 Nov 2023 10:35:05 +0000 (11:35 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 8 Nov 2023 15:38:06 +0000 (16:38 +0100)
commit8dae361f356890ac3e0e51df909d902c1f065d25
tree4fbddeffc3015d81c25e4bbbb1867312547601a1
parent0a47e6bcccea056782fe3911a99e498cd4743ea3
MINOR: stktable/cli: support v6tov4 and v4tov6 conversions

Add a special treatment for the IPV4 and IPV6 cases in
table_process_entry_per_key() function so that input string is parsed
in best effort (STR to pseudo type ADDR): input format is first considered
over table type and then let smp_to_stkey() do the type conversion for us
when needed.

This patch heavily depends on:
- "MEDIUM: stktable/cli: simplify entry key handling"

And optionally depends on:
72514a44 ("MEDIUM: tools/ip: v4tov6() and v6tov4() rework")
src/stick_table.c