MINOR: tools: Add function to compare an address to a network address
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 26 Feb 2021 08:12:50 +0000 (09:12 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 26 Feb 2021 12:52:06 +0000 (13:52 +0100)
commit9553de7fecfe9926d7af9d4656b8ba68e8c28fe0
treec9c993acc43a913789cb29644553d3156a108bd3
parent01f02a4d84d155ef9480ccb8cf8cf97ce0918b25
MINOR: tools: Add function to compare an address to a network address

ipcmp2net() function may be used to compare an addres (struct
sockaddr_storage) to a network address (struct net_addr). Among other
things, this function will be used to add support of IPv6 for "except"
parameter of "forwardfor" and "originalto" options.
include/haproxy/tools.h
src/tools.c