Home
last modified time | relevance | path

Searched refs:ipv4Addr (Results 1 – 6 of 6) sorted by relevance

/packages/modules/NetworkStack/common/moduleutils/src/android/net/ip/
DInterfaceController.java57 public boolean setInterfaceConfiguration(final LinkAddress ipv4Addr, in setInterfaceConfiguration() argument
59 if (!(ipv4Addr.getAddress() instanceof Inet4Address)) { in setInterfaceConfiguration()
67 ifConfig.ipv4Addr = ipv4Addr.getAddress().getHostAddress(); in setInterfaceConfiguration()
68 ifConfig.prefixLength = ipv4Addr.getPrefixLength(); in setInterfaceConfiguration()
83 ifConfig.ipv4Addr, ifConfig.prefixLength, e); in setInterfaceConfiguration()
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/
DInterfaceControllerTest.java74 assertEquals(TEST_IPV4_ADDR, parcel.ipv4Addr); in testSetIPv4Address()
86 assertEquals("0.0.0.0", parcel.ipv4Addr); in testClearIPv4Address()
/packages/modules/NetworkStack/src/android/net/util/
DNetworkStackUtils.java430 public static void addArpEntry(Inet4Address ipv4Addr, android.net.MacAddress ethAddr, in addArpEntry() argument
432 addArpEntry(ethAddr.toByteArray(), ipv4Addr.getAddress(), ifname, fd); in addArpEntry()
/packages/modules/NetworkStack/jni/
Dnetwork_stack_utils_jni.cpp59 jbyteArray ipv4Addr, jstring ifname, jobject javaFd) { in network_stack_utils_addArpEntry() argument
71 if (!checkLenAndCopy(env, ipv4Addr, sizeof(in_addr), &netAddrStruct.sin_addr)) { in network_stack_utils_addArpEntry()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpServer.java187 void addArpEntry(@NonNull Inet4Address ipv4Addr, @NonNull MacAddress ethAddr, in addArpEntry() argument
226 public void addArpEntry(@NonNull Inet4Address ipv4Addr, @NonNull MacAddress ethAddr, in addArpEntry() argument
228 NetworkStackUtils.addArpEntry(ipv4Addr, ethAddr, ifname, fd); in addArpEntry()
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTest.java924 assertEquals(ifConfig.getValue().ipv4Addr, ipAddress.getAddress().getHostAddress());
1707 assertEquals("0.0.0.0", cfg.ipv4Addr);