mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
This should be largely transparent, but it drastically improves performance and reduces memory foot-print when configuring large numbers domains of the form local=/adserver.com/ or local=/adserver.com/# Lookup times now grow as log-to-base-2 of the number of domains, rather than greater than linearly, as before. The change makes multiple addresses associated with a domain work address=/example.com/1.2.3.4 address=/example.com/5.6.7.8 It also handles multiple upstream servers for a domain better; using the same try/retry alogrithms as non domain-specific servers. This also applies to DNSSEC-generated queries. Finally, some of the oldest and gnarliest code in dnsmasq has had a significant clean-up. It's far from perfect, but it _is_ better.
27 lines
883 B
Makefile
27 lines
883 B
Makefile
LOCAL_PATH := external/dnsmasq/src
|
|
|
|
#########################
|
|
|
|
include $(CLEAR_VARS)
|
|
LOCAL_SRC_FILES := bpf.c cache.c dbus.c dhcp.c dnsmasq.c \
|
|
forward.c helper.c lease.c log.c \
|
|
netlink.c network.c option.c rfc1035.c \
|
|
rfc2131.c tftp.c util.c conntrack.c \
|
|
dhcp6.c rfc3315.c dhcp-common.c outpacket.c \
|
|
radv.c slaac.c auth.c ipset.c domain.c \
|
|
dnssec.c dnssec-openssl.c blockdata.c tables.c \
|
|
loop.c inotify.c poll.c rrfilter.c edns0.c arp.c \
|
|
crypto.c dump.c ubus.c metrics.c hash_questions.c \
|
|
domain-match.c
|
|
|
|
LOCAL_MODULE := dnsmasq
|
|
|
|
LOCAL_C_INCLUDES := external/dnsmasq/src
|
|
|
|
LOCAL_CFLAGS := -O2 -g -W -Wall -D__ANDROID__ -DNO_IPV6 -DNO_TFTP -DNO_SCRIPT
|
|
LOCAL_SYSTEM_SHARED_LIBRARIES := libc libcutils
|
|
|
|
LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -llog
|
|
|
|
include $(BUILD_EXECUTABLE)
|