Drain tun interfaces before every test

The tun interfaces were not drained after being set up, meaning that a
test that expects read() to succeed might do so due to the presence of
the initial MLD, NS, or RS packet after bringing up the interface.

Additionally, the tun interfaces in this test are static, so draining
them in SetUp() ensures there are no packets leftover from a previous
test.

Test: atest netd_integration_test
Change-Id: I7585b6dfd35e1964c28765f7624e4955b5f5cfb4
1 file changed
tree: 28f6d9adbc304109744b605f2e1488f4c1bdb1c2
  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