diff options
| author | Luke Huang <huangluke@google.com> | 2019-05-20 16:17:12 +0800 |
|---|---|---|
| committer | Luke Huang <huangluke@google.com> | 2019-05-23 14:50:16 +0800 |
| commit | 185098d7d56ae87408071ef42bc6b76ddabcc914 (patch) | |
| tree | b16f1d04ffcb4b4be2def0ce6ac70c3920622c30 /client/NetdClientTest.cpp | |
| parent | d286198c26c3d80bfaf5f53d6faeea5d0ce6faf5 (diff) | |
Add getDnsNetId cmd in DnsProxyListener
This command is used to get the netId which resolver
will use for sending DNS query.
Correst ResponseCode.h from const to constexpr
for test.
Input:
cmd format: getdnsnetid netId
-netid: selected netid of the process
Output:
Success: 1. ResponseCode::DnsProxyQueryResult
2. dnsNetId
Fail: 1. ResponseCode::DnsProxyQueryResult
2. -errno
Possible errno:
EINVAL
Bug: 129530368
Test: built, flashed, booted
system/netd/tests/runtests.sh
Change-Id: Iaeabb9330a963b30da5948494432118893e084ac
Diffstat (limited to 'client/NetdClientTest.cpp')
0 files changed, 0 insertions, 0 deletions
