mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +03:00
resolve: move dns routines into shared
This commit is contained in:
parent
a8467435a0
commit
4ad7f2761d
42
Makefile.am
42
Makefile.am
@ -762,6 +762,8 @@ libsystemd_shared_la_SOURCES = \
|
||||
src/shared/udev-util.h \
|
||||
src/shared/device-nodes.c \
|
||||
src/shared/device-nodes.h \
|
||||
src/shared/dns-domain.c \
|
||||
src/shared/dns-domain.h \
|
||||
src/shared/util.c \
|
||||
src/shared/util.h \
|
||||
src/shared/virt.c \
|
||||
@ -978,6 +980,7 @@ libsystemd_shared_la_CFLAGS = \
|
||||
libsystemd_shared_la_LIBADD = \
|
||||
$(SELINUX_LIBS) \
|
||||
$(CAP_LIBS) \
|
||||
$(LIBIDN_LIBS) \
|
||||
-lm
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
@ -1446,7 +1449,8 @@ tests += \
|
||||
test-copy \
|
||||
test-cap-list \
|
||||
test-sigbus \
|
||||
test-verbs
|
||||
test-verbs \
|
||||
test-dns-domain
|
||||
|
||||
EXTRA_DIST += \
|
||||
test/a.service \
|
||||
@ -1577,6 +1581,15 @@ test_hostname_SOURCES = \
|
||||
test_hostname_LDADD = \
|
||||
libsystemd-core.la
|
||||
|
||||
test_dns_domain_SOURCES = \
|
||||
src/test/test-dns-domain.c
|
||||
|
||||
test_dns_domain_LDADD = \
|
||||
libsystemd-network.la \
|
||||
libsystemd-internal.la \
|
||||
libsystemd-shared.la \
|
||||
$(LIBIDN_LIBS)
|
||||
|
||||
if ENABLE_EFI
|
||||
manual_tests += \
|
||||
test-boot-timestamp
|
||||
@ -3382,7 +3395,8 @@ test_dhcp_client_SOURCES = \
|
||||
test_dhcp_client_LDADD = \
|
||||
libsystemd-network.la \
|
||||
libsystemd-internal.la \
|
||||
libsystemd-shared.la
|
||||
libsystemd-shared.la \
|
||||
$(LIBIDN_LIBS)
|
||||
|
||||
test_dhcp_server_SOURCES = \
|
||||
src/libsystemd-network/test-dhcp-server.c
|
||||
@ -5405,8 +5419,6 @@ systemd_resolved_SOURCES = \
|
||||
src/resolve/resolved-link.h \
|
||||
src/resolve/resolved-link.c \
|
||||
src/resolve/resolved-def.h \
|
||||
src/resolve/resolved-dns-domain.h \
|
||||
src/resolve/resolved-dns-domain.c \
|
||||
src/resolve/resolved-dns-rr.h \
|
||||
src/resolve/resolved-dns-rr.c \
|
||||
src/resolve/resolved-dns-question.h \
|
||||
@ -5476,20 +5488,6 @@ GENERAL_ALIASES += \
|
||||
nodist_pkgsysconf_DATA += \
|
||||
src/resolve/resolved.conf
|
||||
|
||||
tests += \
|
||||
test-dns-domain
|
||||
|
||||
test_dns_domain_SOURCES = \
|
||||
src/resolve/resolved-dns-domain.h \
|
||||
src/resolve/resolved-dns-domain.c \
|
||||
src/resolve/test-dns-domain.c
|
||||
|
||||
test_dns_domain_LDADD = \
|
||||
libsystemd-network.la \
|
||||
libsystemd-internal.la \
|
||||
libsystemd-shared.la \
|
||||
$(LIBIDN_LIBS)
|
||||
|
||||
libnss_resolve_la_SOURCES = \
|
||||
src/nss-resolve/nss-resolve.sym \
|
||||
src/nss-resolve/nss-resolve.c
|
||||
@ -5520,8 +5518,6 @@ systemd_resolve_host_SOURCES = \
|
||||
src/resolve/resolved-dns-answer.h \
|
||||
src/resolve/resolved-dns-question.c \
|
||||
src/resolve/resolved-dns-question.h \
|
||||
src/resolve/resolved-dns-domain.c \
|
||||
src/resolve/resolved-dns-domain.h \
|
||||
src/resolve/dns-type.c \
|
||||
src/resolve/dns-type.h
|
||||
|
||||
@ -5551,7 +5547,8 @@ systemd_networkd_SOURCES = \
|
||||
src/network/networkd.c
|
||||
|
||||
systemd_networkd_LDADD = \
|
||||
libsystemd-networkd-core.la
|
||||
libsystemd-networkd-core.la \
|
||||
$(LIBIDN_LIBS)
|
||||
|
||||
if HAVE_LIBIPTC
|
||||
systemd_networkd_LDADD += \
|
||||
@ -5650,7 +5647,8 @@ test_network_SOURCES = \
|
||||
src/network/test-network.c
|
||||
|
||||
test_network_LDADD = \
|
||||
libsystemd-networkd-core.la
|
||||
libsystemd-networkd-core.la \
|
||||
$(LIBIDN_LIBS)
|
||||
|
||||
if HAVE_LIBIPTC
|
||||
test_network_LDADD += \
|
||||
|
@ -22,7 +22,7 @@
|
||||
#include "bus-common-errors.h"
|
||||
#include "bus-util.h"
|
||||
|
||||
#include "resolved-dns-domain.h"
|
||||
#include "dns-domain.h"
|
||||
#include "resolved-bus.h"
|
||||
#include "resolved-def.h"
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
||||
***/
|
||||
|
||||
#include "resolved-dns-answer.h"
|
||||
#include "resolved-dns-domain.h"
|
||||
#include "dns-domain.h"
|
||||
|
||||
DnsAnswer *dns_answer_new(unsigned n) {
|
||||
DnsAnswer *a;
|
||||
|
@ -23,7 +23,7 @@
|
||||
#include "util.h"
|
||||
#include "strv.h"
|
||||
#include "unaligned.h"
|
||||
#include "resolved-dns-domain.h"
|
||||
#include "dns-domain.h"
|
||||
#include "resolved-dns-packet.h"
|
||||
|
||||
int dns_packet_new(DnsPacket **ret, DnsProtocol protocol, size_t mtu) {
|
||||
|
@ -20,7 +20,7 @@
|
||||
***/
|
||||
|
||||
#include "resolved-dns-question.h"
|
||||
#include "resolved-dns-domain.h"
|
||||
#include "dns-domain.h"
|
||||
|
||||
DnsQuestion *dns_question_new(unsigned n) {
|
||||
DnsQuestion *q;
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
#include "strv.h"
|
||||
|
||||
#include "resolved-dns-domain.h"
|
||||
#include "dns-domain.h"
|
||||
#include "resolved-dns-rr.h"
|
||||
#include "resolved-dns-packet.h"
|
||||
#include "dns-type.h"
|
||||
|
@ -27,7 +27,7 @@
|
||||
#include "af-list.h"
|
||||
#include "random-util.h"
|
||||
#include "hostname-util.h"
|
||||
#include "resolved-dns-domain.h"
|
||||
#include "dns-domain.h"
|
||||
#include "resolved-dns-scope.h"
|
||||
|
||||
#define MULTICAST_RATELIMIT_INTERVAL_USEC (1*USEC_PER_SEC)
|
||||
|
@ -22,7 +22,7 @@
|
||||
#include "list.h"
|
||||
|
||||
#include "resolved-dns-zone.h"
|
||||
#include "resolved-dns-domain.h"
|
||||
#include "dns-domain.h"
|
||||
#include "resolved-dns-packet.h"
|
||||
|
||||
/* Never allow more than 1K entries */
|
||||
|
@ -34,7 +34,7 @@
|
||||
#include "random-util.h"
|
||||
#include "hostname-util.h"
|
||||
|
||||
#include "resolved-dns-domain.h"
|
||||
#include "dns-domain.h"
|
||||
#include "resolved-conf.h"
|
||||
#include "resolved-bus.h"
|
||||
#include "resolved-manager.h"
|
||||
|
@ -24,7 +24,7 @@
|
||||
#include <stringprep.h>
|
||||
#endif
|
||||
|
||||
#include "resolved-dns-domain.h"
|
||||
#include "dns-domain.h"
|
||||
|
||||
int dns_label_unescape(const char **name, char *dest, size_t sz) {
|
||||
const char *n;
|
@ -20,7 +20,7 @@
|
||||
***/
|
||||
|
||||
#include "macro.h"
|
||||
#include "resolved-dns-domain.h"
|
||||
#include "dns-domain.h"
|
||||
|
||||
static void test_dns_label_unescape_one(const char *what, const char *expect, size_t buffer_sz, int ret) {
|
||||
char buffer[buffer_sz];
|
Loading…
Reference in New Issue
Block a user