MINOR: pattern/ip: offload ip conversion logic to helper functions
authorAurelien DARRAGON <adarragon@haproxy.com>
Tue, 5 Sep 2023 12:58:53 +0000 (14:58 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 21 Sep 2023 07:50:55 +0000 (09:50 +0200)
commitf80122db266700259daa448b92a763e1b7a26dab
treeaeec6007821ceb7e775374af94697cbb68e3c3d9
parent72514a44678c88f516827131d249138fb8f01920
MINOR: pattern/ip: offload ip conversion logic to helper functions

Now that v4tov6() and v6tov4() were reworked to match behavior from
pat_match_ip() function in ("MINOR: tools/ip: v4tov6() and v6tov4()
rework"), we can remove code duplication in pat_match_ip() by directly
using those dedicated functions where relevant.
src/pattern.c