summaryrefslogtreecommitdiff
path: root/resolv/Dns64Configuration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'resolv/Dns64Configuration.cpp')
-rw-r--r--resolv/Dns64Configuration.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/resolv/Dns64Configuration.cpp b/resolv/Dns64Configuration.cpp
index 6cd9c2e3..a1dfdca0 100644
--- a/resolv/Dns64Configuration.cpp
+++ b/resolv/Dns64Configuration.cpp
@@ -33,9 +33,11 @@
#include "netdutils/BackoffSequence.h"
#include "netdutils/DumpWriter.h"
#include "netid_client.h"
+#include "stats.pb.h"
namespace android {
+using android::net::NetworkDnsEventReported;
using netdutils::DumpWriter;
using netdutils::IPAddress;
using netdutils::IPPrefix;
@@ -152,8 +154,9 @@ bool Dns64Configuration::doRfc7050PrefixDiscovery(const android_net_context& net
// ourselves, which means we also bypass all the special netcontext flag
// handling and the resolver event logging.
struct addrinfo* res = nullptr;
- const int status =
- android_getaddrinfofornetcontext(kIPv4OnlyHost, nullptr, &hints, &netcontext, &res);
+ NetworkDnsEventReported event;
+ const int status = android_getaddrinfofornetcontext(kIPv4OnlyHost, nullptr, &hints, &netcontext,
+ &res, &event);
ScopedAddrinfo result(res);
if (status != 0) {
ALOGW("(%u, %u) plat_prefix/dns(%s) status = %d/%s", cfg->netId, cfg->discoveryId,