]> git.kaiwu.me - haproxy.git/commit
MINOR: tools: report explicit address type selection
authorManu Nicolas <e.nicolas@criteo.com>
Tue, 1 Sep 2026 10:44:47 +0000 (10:44 +0000)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 1 Sep 2026 15:59:15 +0000 (17:59 +0200)
commitfc05ed8cc2c81204fd159b2b03413afbc5d8ccde
tree2c3dff529ebc7eecf00ae3cd40e4fec61e8cd1b1
parent259465498fe59c3c14125e5a956ab4d5accee2f4
MINOR: tools: report explicit address type selection

str2sa_range() reports the resulting socket and transport types through
net_addr_type. It does not tell callers whether these types came from
defaults or from an explicit prefix. Callers that need to distinguish
the two must duplicate the parser prefix list, which can fall out of
sync.

Add explicit_type and set it for prefixes that select a socket or
transport type. Family-only prefixes leave it unset. This has no effect
on existing callers.
include/haproxy/tools-t.h
src/tools.c