Home
last modified time | relevance | path

Searched refs:ifConfig (Results 1 – 2 of 2) sorted by relevance

/packages/modules/NetworkStack/common/moduleutils/src/android/net/ip/
DInterfaceController.java65 final InterfaceConfigurationParcel ifConfig = new InterfaceConfigurationParcel(); in setInterfaceConfiguration() local
66 ifConfig.ifName = mIfName; in setInterfaceConfiguration()
67 ifConfig.ipv4Addr = ipv4Addr.getAddress().getHostAddress(); in setInterfaceConfiguration()
68 ifConfig.prefixLength = ipv4Addr.getPrefixLength(); in setInterfaceConfiguration()
70 ifConfig.hwAddr = ""; in setInterfaceConfiguration()
73 ifConfig.flags = new String[0]; in setInterfaceConfiguration()
76 ifConfig.flags = setIfaceUp.booleanValue() in setInterfaceConfiguration()
80 mNetd.interfaceSetCfg(ifConfig); in setInterfaceConfiguration()
83 ifConfig.ipv4Addr, ifConfig.prefixLength, e); in setInterfaceConfiguration()
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTest.java862 final ArgumentCaptor<InterfaceConfigurationParcel> ifConfig =
923 verify(mNetd, timeout(TEST_TIMEOUT_MS).times(1)).interfaceSetCfg(ifConfig.capture());
924 assertEquals(ifConfig.getValue().ifName, mIfaceName);
925 assertEquals(ifConfig.getValue().ipv4Addr, ipAddress.getAddress().getHostAddress());
926 assertEquals(ifConfig.getValue().prefixLength, PREFIX_LENGTH);