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

Skip to content
Commit c0c818f4 authored by Luke Huang's avatar Luke Huang
Browse files

Add resNetworkSend cmd in DnsProxyListener

Add resNetworkSend cmd handler in DnsProxyListener.
It is a handler for async dns query API.
It uses resolv_res_nsend for querying.
Need res_nsend return -errno directly if failed.

Input:
    cmd format: resnsend rawmsg netid
      -rawmsg: base64 encoded dns query msg
      -netid: netid of network for querying

Output:
    Success: 1. rcode
             2. answer length
             3. answer raw data

    Fail:    1. -errno

    Possible errno:
                   EINVAL
                   EBUSY
                   EILSEQ
                   errno from res_nsend directly

Test: built, flashed, booted
Change-Id: Id99e5889591cdcf36d0c74b7f038c0e60e0eed74
parent eb37db95
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