Merge changes I33bc80cc,Ie84e2cd4

* changes:
  EthernetManagerTest: update tests that bring up tap without carrier
  TestNetworkService: use IFF_NO_CARRIER to bring up iface without carrier
This commit is contained in:
Treehugger Robot
2023-04-20 18:01:28 +00:00
committed by Gerrit Code Review
3 changed files with 29 additions and 12 deletions

View File

@@ -260,7 +260,7 @@ public class TestNetworkManager {
/**
* Create a tap interface with or without carrier for testing purposes.
*
* Note: setting carrierUp = false is not supported until kernel version 5.0.
* Note: setting carrierUp = false is not supported until kernel version 6.0.
*
* @param carrierUp whether the created interface has a carrier or not.
* @param bringUp whether to bring up the interface before returning it.
@@ -280,6 +280,8 @@ public class TestNetworkManager {
/**
* Create a tap interface for testing purposes.
*
* Note: setting carrierUp = false is not supported until kernel version 6.0.
*
* @param carrierUp whether the created interface has a carrier or not.
* @param bringUp whether to bring up the interface before returning it.
* @param disableIpv6ProvisioningDelay whether to disable DAD and RS delay.