Remove DNS64 detection code from clatd.
This has been unused since Q, when the NAT64 prefix started being
detected and passed in by netd instead. Many things depend on the
prefix being correct, including clat BPF offload and DNS64
synthesis, and doing DNS64 detection in clatd provides no way to
make these work. Additionally, R now supports getting the NAT64
prefix via the RA, which makes DNS64 detection in clatd even less
useful.
This CL removes all the DNS64 detection code. The new code parses
the prefix in main.c, and if the prefix is not valid, refuses to
start.
This also lets us remove the -n <netid> parameter which was only
used for DNS64 detection.
It also removes a dependency on dnsproxyd_protocol_headers, which
should be depended on by as few parts of the system as possible.
Test: m
Bug: 144730808
Bug: 151895202
Test: IPv6-only wifi continues to work
Change-Id: I892f364d6cbfe76277686387e35c04d3d6eb5ecc
diff --git a/Android.bp b/Android.bp
index 8585780..bff97d3 100644
--- a/Android.bp
+++ b/Android.bp
@@ -10,11 +10,10 @@
"-Wno-address-of-packed-member",
],
- // For NETID_UNSET and MARK_UNSET.
- include_dirs: ["bionic/libc/dns/include"],
-
- // For NETID_USE_LOCAL_NAMESERVERS.
- header_libs: ["dnsproxyd_protocol_headers"],
+ // For MARK_UNSET.
+ header_libs: [
+ "libnetd_client_headers"
+ ],
}
// Code used both by the daemon and by unit tests.
@@ -23,7 +22,6 @@
srcs: [
"config.c",
"clatd.c",
- "dns64.c",
"dump.c",
"getaddr.c",
"icmp.c",