haproxy/reg-tests/http-rules
Aurelien DARRAGON db1cd8f881 OPTIM: http_ext: avoid useless copy in http_7239_extract_{ipv4,ipv6}
In http_7239_extract_{ipv4,ipv6}, we declare a local buffer in order to
use inet_pton() since it requires a valid destination argument (cannot be
NULL). Then, if the caller provided <ip> argument, we copy inet_pton()
result (from local buffer to <ip>).

In fact when the caller provides <ip>, we may directly use <ip> as
inet_pton() dst argument to avoid an useless copy. Thus the local buffer
is only relevant when the user doesn't provide <ip>.

While at it, let's add a missing testcase for the rfc7239_n2nn converter
(to check that http_7239_extract_ipv4() with <ip> provided works properly)

This could be backported in 2.8 with b2bb925 ("MINOR: proxy/http_ext:
introduce proxy forwarded option")
2024-03-25 16:24:15 +01:00
..
1k.txt
acl_cli_spaces.vtc REGTESTS: Remove REQUIRE_VERSION=2.0 from all tests 2023-01-05 09:11:38 +01:00
agents.acl
converters_ipmask_concat_strcmp_field_word.map
converters_ipmask_concat_strcmp_field_word.vtc REGTEST: added tests covering smp_fetch_hdr_ip() 2023-03-01 14:10:02 +01:00
default_rules.vtc BUG/MEDIUM: rules: Be able to use captures defined in defaults section 2022-04-25 15:28:21 +02:00
del_header.vtc
except-forwardfor-originalto.vtc
forwarded-header-7239.vtc OPTIM: http_ext: avoid useless copy in http_7239_extract_{ipv4,ipv6} 2024-03-25 16:24:15 +01:00
h1or2_to_h1c.vtc BUG/MINOR: http: skip leading zeroes in content-length values 2023-08-09 11:28:48 +02:00
http_after_response.vtc
http_return.vtc
http-err-fail.vtc MEDIUM: http: add the ability to redefine http-err-codes and http-fail-codes 2024-01-11 15:10:08 +01:00
ifnone-forwardfor.vtc REGTESTS: Do not use REQUIRE_VERSION for HAProxy 2.5+ (3) 2023-08-15 11:29:13 +02:00
lf-file.txt
map_ordering.map MINOR: map: mapfile ordering also matters for tree-based match types 2024-01-11 11:13:54 +01:00
map_ordering.vtc MINOR: map: mapfile ordering also matters for tree-based match types 2024-01-11 11:13:54 +01:00
map_redirect-be.map
map_redirect.map
map_redirect.vtc
map_regm_with_backref.map
map_regm_with_backref.vtc
normalize_uri.vtc REGTESTS: http-rules: verify that we block '#' by default for normalize-uri 2023-08-08 19:56:41 +02:00
path_and_pathq.vtc
restrict_req_hdr_names.vtc BUG/MEDIUM: http-ana: fix crash or wrong header deletion by http-restrict-req-hdr-names 2022-08-17 15:52:17 +02:00
strict_rw_mode.vtc