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

Skip to content
Commit 6ce587d2 authored by Mike Yu's avatar Mike Yu Committed by Luke Huang
Browse files

Support multinetwork tests

The integration test used to set up testing DNS servers on loopback
interface. To support testing functionality for multinetwork, make
the test able to send queries to a TUN interface, and the queries
will be forwarded to the testing DNS servers.

To forward packets, implement a forwarder which can translate packets
(v4-to-v4 or v6-to-v6) between the resolver and testing DNS servers
and can forward packets to each other.

Also add three tests:
  GetAddrInfo_AI_ADDRCONFIG
  NetworkDestroyedDuringQueryInFlight
  OneCachePerNetwork

And remove unused libraries from the test:
  libnetd_test_tun_interface
  libnetd_test_utils

Test: cd packages/modules/DnsResolver && atest
Change-Id: I52a52ce59373bc8b9462064c0409b657696c379f
parent 568ed6c9
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