]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: resolvers/dns: split dns.c into dns.c and resolvers.c
authorEmeric Brun <ebrun@haproxy.com>
Fri, 12 Feb 2021 18:42:55 +0000 (19:42 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 13 Feb 2021 09:03:46 +0000 (10:03 +0100)
commitc943799c865c04281454a7a54fd6c45c2b4d7e09
tree9a4d544ca36850c9850fa04c4624ca1d7baf686f
parentd26a6237ad020ed0edcc557d2a24f9297c20f30e
MEDIUM: resolvers/dns: split dns.c into dns.c and resolvers.c

This patch splits current dns.c into two files:

The first dns.c contains code related to DNS message exchange over UDP
and in future other TCP. We try to remove depencies to resolving
to make it usable by other stuff as DNS load balancing.

The new resolvers.c inherit of the code specific to the actual
resolvers.

Note:
It was really difficult to obtain a clean diff dur to the amount
of moved code.

Note2:
Counters and stuff related to stats is not cleany separated because
currently counters for both layers are merged and hard to separate
for now.
15 files changed:
Makefile
include/haproxy/dns-t.h
include/haproxy/dns.h
include/haproxy/resolvers-t.h [new file with mode: 0644]
include/haproxy/resolvers.h [new file with mode: 0644]
include/haproxy/server-t.h
include/haproxy/server.h
src/cfgparse.c
src/check.c
src/dns.c
src/resolvers.c [new file with mode: 0644]
src/server.c
src/stats.c
src/stream.c
src/tools.c