Home
last modified time | relevance | path

Searched refs:INADDR_ANY (Results 1 – 21 of 21) sorted by relevance

/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpServerTest.java22 import static android.net.dhcp.DhcpPacket.INADDR_ANY;
238 eq(INADDR_ANY) /* relayAddr */, isNull() /* reqAddr */, isNull() /* hostname */)) in testDiscover()
242 (short) 0 /* secs */, INADDR_ANY /* relayIp */, TEST_CLIENT_MAC_BYTES, in testDiscover()
243 false /* broadcast */, INADDR_ANY /* srcIp */, false /* rapidCommit */); in testDiscover()
258 eq(INADDR_ANY) /* relayAddr */, isNull() /* hostname */)).thenReturn(TEST_LEASE); in testDiscover_RapidCommit()
261 (short) 0 /* secs */, INADDR_ANY /* relayIp */, TEST_CLIENT_MAC_BYTES, in testDiscover_RapidCommit()
262 false /* broadcast */, INADDR_ANY /* srcIp */, true /* rapidCommit */); in testDiscover_RapidCommit()
276 eq(INADDR_ANY) /* relayAddr */, isNull() /* reqAddr */, isNull() /* hostname */)) in testDiscover_OutOfAddresses()
280 (short) 0 /* secs */, INADDR_ANY /* relayIp */, TEST_CLIENT_MAC_BYTES, in testDiscover_OutOfAddresses()
281 false /* broadcast */, INADDR_ANY /* srcIp */, false /* rapidCommit */); in testDiscover_OutOfAddresses()
[all …]
DDhcpPacketTest.java34 import static android.net.dhcp.DhcpPacket.INADDR_ANY;
113 super(0xdeadbeef, (short) 0, clientIp, yourIp, INADDR_ANY, INADDR_ANY, in TestDhcpPacket()
119 this(type, INADDR_ANY, CLIENT_ADDR); in TestDhcpPacket()
1207 SERVER_ADDR, INADDR_ANY /* relayIp */, CLIENT_ADDR /* yourIp */, in checkBuildOfferPacket()
1228 bos.write(INADDR_ANY.getAddress()); in checkBuildOfferPacket()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpNakPacket.java31 super(transId, secs, INADDR_ANY /* clientIp */, INADDR_ANY /* yourIp */, in DhcpNakPacket()
32 INADDR_ANY /* nextIp */, relayIp, clientMac, broadcast); in DhcpNakPacket()
46 Inet4Address destIp = INADDR_ANY; in buildPacket()
47 Inet4Address srcIp = INADDR_ANY; in buildPacket()
DDhcpRequestPacket.java31 super(transId, secs, clientIp, INADDR_ANY, INADDR_ANY, relayIp, clientMac, broadcast); in DhcpRequestPacket()
47 fillInPacket(encap, INADDR_BROADCAST, INADDR_ANY, destUdp, srcUdp, in buildPacket()
59 if (!INADDR_ANY.equals(mRequestedIp)) { in finishPacket()
62 if (!INADDR_ANY.equals(mServerIdentifier)) { in finishPacket()
DDhcpDiscoverPacket.java36 super(transId, secs, INADDR_ANY, INADDR_ANY, INADDR_ANY, relayIp, clientMac, broadcast); in DhcpDiscoverPacket()
DDhcpReleasePacket.java34 super(transId, (short)0, clientAddr, INADDR_ANY /* yourIp */, INADDR_ANY /* nextIp */, in DhcpReleasePacket()
DDhcpPacket.java69 public static final Inet4Address INADDR_ANY = IPV4_ADDR_ANY; field in DhcpPacket
1485 DhcpPacket pkt = new DhcpDiscoverPacket(transactionId, secs, INADDR_ANY /* relayIp */, in buildDiscoverPacket()
1486 clientMac, broadcast, INADDR_ANY /* srcIp */, rapidCommit); in buildDiscoverPacket()
1517 INADDR_ANY /* clientIp */, yourIp, mac); in buildOfferPacket()
1618 INADDR_ANY /* relayIp */, clientMac, broadcast); in buildRequestPacket()
1649 INADDR_ANY /* clientIp */, INADDR_ANY /* yourIp */, INADDR_ANY /* nextIp */, in buildDeclinePacket()
1650 INADDR_ANY /* relayIp */, clientMac, requestedIpAddress, serverIdentifier); in buildDeclinePacket()
DDhcpClient.java31 import static android.net.dhcp.DhcpPacket.INADDR_ANY;
762 final int encap = INADDR_ANY.equals(clientAddress) in sendRequestPacket()
1413 INADDR_ANY, // ciaddr in sendPacket()
1561 return (packet.opCode == ARP_REQUEST && packet.senderIp.equals(INADDR_ANY) in isArpProbe()
1562 && !packet.targetIp.equals(INADDR_ANY)); in isArpProbe()
1575 return (((!packet.senderIp.equals(INADDR_ANY) && packet.senderIp.equals(targetIp)) in packetHasIpAddressConflict()
1742 INADDR_ANY /* sender IP */, mHwAddr, mInterfaceBroadcastAddr); in sendArpProbe()
1817 INADDR_ANY, // DHCP_REQUESTED_IP in sendPacket()
1926 INADDR_ANY, // ciaddr in sendPacket()
DDhcpOfferPacket.java64 Inet4Address srcIp = mBroadcast ? INADDR_ANY : mSrcIp; in buildPacket()
DDhcpAckPacket.java62 Inet4Address srcIp = mBroadcast ? INADDR_ANY : mSrcIp; in buildPacket()
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/arp/
DArpPacketTest.java45 private static final Inet4Address INADDR_ANY = field in ArpPacketTest
149 INADDR_ANY.getAddress(), (short) ARP_REQUEST); in testBuildArpProbePacket()
167 assertEquals(packet.senderIp, INADDR_ANY); in testParseArpProbePacket()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DIkeUdp4Socket.java44 private static final InetAddress INADDR_ANY = InetAddresses.parseNumericAddress("0.0.0.0"); field in IkeUdp4Socket
70 Os.bind(sock, INADDR_ANY, 0); in getInstance()
DIkeUdp6Socket.java44 private static final InetAddress INADDR_ANY = InetAddresses.parseNumericAddress("::"); field in IkeUdp6Socket
83 Os.bind(sock, INADDR_ANY, 0); in openUdp6Sock()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DTetheringInterfaceUtils.java36 private static final InetAddress INADDR_ANY = getByAddress(new byte[] {0, 0, 0, 0}); field in TetheringInterfaceUtils
48 final String if4 = getInterfaceForDestination(lp, INADDR_ANY); in getTetheringInterfaces()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DIpSecServiceTest.java86 private static final InetAddress INADDR_ANY; field in IpSecServiceTest
117 INADDR_ANY = InetAddress.getByAddress(new byte[] {0, 0, 0, 0});
235 Os.bind(newSocket, INADDR_ANY, localport); in testOpenUdpEncapsulationSocketAfterClose()
255 Os.bind(newSocket, INADDR_ANY, localport); in testUdpEncapPortNotReleased()
/packages/apps/Test/connectivity/sl4n/
Dmain.cpp55 servaddr.sin_addr.s_addr = INADDR_ANY; in SockTest()
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTestCommon.java321 private static final Inet4Address INADDR_ANY = field in IpClientIntegrationTestCommon
719 false /* broadcast */, SERVER_ADDR, INADDR_ANY /* relayIp */,
740 false /* broadcast */, SERVER_ADDR, INADDR_ANY /* relayIp */,
758 SERVER_ADDR /* serverIp */, INADDR_ANY /* relayIp */, packet.getClientMac(),
764 SERVER_MAC /* src */, INADDR_ANY.getAddress() /* target IP */,
774 INADDR_ANY.getAddress() /* sender IP */, (short) ARP_REQUEST);
1141 assertEquals(packet.senderIp, INADDR_ANY);
/packages/modules/adb/client/openscreen/platform/
Dudp_socket.cpp509 address.sin_addr.s_addr = INADDR_ANY; in JoinMulticastGroup()
/packages/modules/Connectivity/Tethering/tests/integration/src/android/net/
DEthernetTetheringTest.java644 0 /* transactionId */, (short) 0 /* secs */, DhcpPacket.INADDR_ANY /* clientIp */, in sendDhcpRequest()
/packages/modules/DnsResolver/
Dres_send.cpp307 (srv->sin_addr.s_addr == INADDR_ANY || in res_ourserver_p()
/packages/modules/adb/
Dsysdeps_win32.cpp1124 return _network_server(port, type, INADDR_ANY, error); in network_inaddr_any_server()