MINOR: dns: new snr_check_ip_callback function
authorBaptiste Assmann <bedis9@gmail.com>
Wed, 3 May 2017 13:43:12 +0000 (15:43 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 2 Jun 2017 09:28:14 +0000 (11:28 +0200)
commitfb7091e213e7651d7a0305a4cfec3b45499f43f4
tree0aee3ab75aac28fdd7ac51aaf13f3f4aa6493e71
parent42746373eb1fc6e57e89982c653caccaa7500ea0
MINOR: dns: new snr_check_ip_callback function

In the process of breaking links between dns_* functions and other
structures (mainly server and a bit of resolution), the function
dns_get_ip_from_response needs to be reworked: it now can call
"callback" functions based on resolution's owner type to allow modifying
the way the response is processed.

For now, main purpose of the callback function is to check that an IP
address is not already affected to an element of the same type.

For now, only server type has a callback.
include/proto/dns.h
include/proto/server.h
src/dns.c
src/server.c