]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: dns: extract options
authorThierry Fournier <tfournier@arpalert.org>
Wed, 17 Feb 2016 20:25:09 +0000 (21:25 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 19 Feb 2016 13:37:46 +0000 (14:37 +0100)
commitada348459f7f647e896317014bb99583d14f33a4
tree398115bbaa77cab58fbcc8abd5bafdc0aafb84dc
parent70473a5f8c56d8ec2e837b9b66443dc252b24da9
MEDIUM: dns: extract options

DNS selection preferences are actually declared inline in the
struct server. There are copied from the server struct to the
dns_resolution struct for each resolution.

Next patchs adds new preferences options, and it is not a good
way to copy all the configuration information before each dns
resolution.

This patch extract the configuration preference from the struct
server and declares a new dedicated struct. Only a pointer to this
new striuict will be copied before each dns resolution.
include/proto/dns.h
include/types/dns.h
include/types/server.h
src/checks.c
src/dns.c
src/server.c