summaryrefslogtreecommitdiff
path: root/server/NetworkController.cpp
diff options
context:
space:
mode:
authorMike Yu <yumike@google.com>2018-12-02 17:54:29 +0900
committerMike Yu <yumike@google.com>2018-12-13 17:58:50 +0800
commit5b9ffb27cfc7645f7b93c037483063af40c836d2 (patch)
tree1630c3b2e8a38cef4bdcdd5cad0493909bfb02d0 /server/NetworkController.cpp
parentc68f1b9b81247a22441918483da85639d7c49945 (diff)
Fix using EDNS0 when no private DNS validated
Do not add NET_CONTEXT_FLAG_USE_EDNS to android_net_context flag if there is no private DNS server validated. A server not supporting EDNS might respond with FORMERR or ignore the request. In former case, we will remove OPT RR and retry again. In later case, we will not retry, so the DNS query might timeout. Also fix the bug which dns_responder responds to the query even though it's been set unresponsive. Bug: 120257033 Test: system/netd/tests/runtests.sh passed Checked packets not containging OPT RR when using cleartext DNS Change-Id: I8250a800ddade0ff810445bc912ea5799b99ec8c
Diffstat (limited to 'server/NetworkController.cpp')
0 files changed, 0 insertions, 0 deletions