Fix NDC fail in presubmit with cf_x86 device

NDC test failed in presubmit because of configuring IPv6 routes
failed with EACCESS. Couple designs are involved in this issue:

1. The test interface(e.g. sTun) are shared between each test
   to reduce the initial time of test interfaces. The
   configuration of the test interface will be kept if it
   is not correctly reset.
2. In general, IPv6 abilities should be enabled by default.
   InterfaceSetMtu test configures the MTU of sTun to 1200.
   The size is lower than the minimum MTU of IPv6. The IPv6 will
   be disabled when the MTU size lower than the minimum MTU in
   the kernel.
3. TetherInterfaceAddRemoveList test tether interface add and
   remove with the same sTun interface. When the tether
   interface is removed, TetherController will change IPv6
   configurations for client. It results in the IPv6 being disabled
   in sTun.

Thus, restore the MTU at the end of the test that change the MTU
and re-init the interface to restore the IPv6 related
configurations.

Bug: 245238258
Test: atest NetdBinderTest
Change-Id: I5b8a8384d6c1e5fbe84249dcdac419d2cb832434
(cherry picked from commit f281d2ac55da9ea00837d78a32c6de87dbac8b3e)
Merged-In: I5b8a8384d6c1e5fbe84249dcdac419d2cb832434
1 file changed
tree: 781228044c762c25a41c768d5e4049a7e0cb3aa7
  1. client/
  2. include/
  3. netutils_wrappers/
  4. server/
  5. tests/
  6. .editorconfig
  7. Android.bp
  8. NOTICE
  9. OWNERS
  10. PREUPLOAD.cfg
  11. TEST_MAPPING