Home
last modified time | relevance | path

Searched refs:INADDR_ANY (Results 1 – 16 of 16) 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;
106 super(0xdeadbeef, (short) 0, clientIp, yourIp, INADDR_ANY, INADDR_ANY, in TestDhcpPacket()
112 this(type, INADDR_ANY, CLIENT_ADDR); in TestDhcpPacket()
1153 SERVER_ADDR, INADDR_ANY /* relayIp */, CLIENT_ADDR /* yourIp */, in checkBuildOfferPacket()
1174 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()
DDhcpPacket.java67 public static final Inet4Address INADDR_ANY = IPV4_ADDR_ANY; field in DhcpPacket
1394 DhcpPacket pkt = new DhcpDiscoverPacket(transactionId, secs, INADDR_ANY /* relayIp */, in buildDiscoverPacket()
1395 clientMac, broadcast, INADDR_ANY /* srcIp */, rapidCommit); in buildDiscoverPacket()
1413 INADDR_ANY /* clientIp */, yourIp, mac); in buildOfferPacket()
1478 INADDR_ANY /* relayIp */, clientMac, broadcast); in buildRequestPacket()
1493 INADDR_ANY /* clientIp */, INADDR_ANY /* yourIp */, INADDR_ANY /* nextIp */, in buildDeclinePacket()
1494 INADDR_ANY /* relayIp */, clientMac, requestedIpAddress, serverIdentifier); in buildDeclinePacket()
DDhcpReleasePacket.java34 super(transId, (short)0, clientAddr, INADDR_ANY /* yourIp */, INADDR_ANY /* nextIp */, in DhcpReleasePacket()
DDhcpClient.java30 import static android.net.dhcp.DhcpPacket.INADDR_ANY;
723 final int encap = INADDR_ANY.equals(clientAddress) in sendRequestPacket()
1356 INADDR_ANY, // ciaddr in sendPacket()
1501 return (packet.opCode == ARP_REQUEST && packet.senderIp.equals(INADDR_ANY) in isArpProbe()
1502 && !packet.targetIp.equals(INADDR_ANY)); in isArpProbe()
1515 return (((!packet.senderIp.equals(INADDR_ANY) && packet.senderIp.equals(targetIp)) in packetHasIpAddressConflict()
1682 INADDR_ANY /* sender IP */, mHwAddr, mInterfaceBroadcastAddr); in sendArpProbe()
1757 INADDR_ANY, // DHCP_REQUESTED_IP in sendPacket()
1863 INADDR_ANY, // ciaddr in sendPacket()
DDhcpOfferPacket.java61 Inet4Address srcIp = mBroadcast ? INADDR_ANY : mSrcIp; in buildPacket()
DDhcpAckPacket.java61 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/
DIkeUdp6Socket.java49 private static final InetAddress INADDR_ANY = InetAddresses.parseNumericAddress("::"); field in IkeUdp6Socket
81 Os.bind(sock, INADDR_ANY, 0); in getInstance()
DIkeUdp4Socket.java49 private static final InetAddress INADDR_ANY = InetAddresses.parseNumericAddress("0.0.0.0"); field in IkeUdp4Socket
81 Os.bind(sock, INADDR_ANY, 0); in getInstance()
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTest.java250 private static final Inet4Address INADDR_ANY = field in IpClientIntegrationTest
554 false /* broadcast */, SERVER_ADDR, INADDR_ANY /* relayIp */,
567 false /* broadcast */, SERVER_ADDR, INADDR_ANY /* relayIp */,
578 SERVER_ADDR /* serverIp */, INADDR_ANY /* relayIp */, packet.getClientMac(),
584 SERVER_MAC /* src */, INADDR_ANY.getAddress() /* target IP */,
594 INADDR_ANY.getAddress() /* sender IP */, (short) ARP_REQUEST);
953 assertEquals(packet.senderIp, INADDR_ANY);
/packages/apps/Test/connectivity/sl4n/
Dmain.cpp55 servaddr.sin_addr.s_addr = INADDR_ANY; in SockTest()
/packages/modules/DnsResolver/
Dres_send.cpp310 (srv->sin_addr.s_addr == INADDR_ANY || in res_ourserver_p()