Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb66fbae authored by Luke Huang's avatar Luke Huang
Browse files

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

Merged-In: Ie81751b762a780ed843bea255c1507ed03660c0e
(cherry picked from commit 4bd0e67a9568e72fe18ac4e0ab98c5bf5e6b75ee)

Change-Id: I18c4c04ab4547dc29cf97abc49ad01563e534e26
parent 2e4ad5bb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment