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

Commit 9807e6b5 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

Change-Id: Iaeabb9330a963b30da5948494432118893e084ac
parent ee38a894
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