Home
last modified time | relevance | path

Searched refs:dstAddr (Results 1 – 25 of 33) sorted by relevance

12

/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/netlink/
DStructInetDiagSockIdTest.java141 final InetSocketAddress dstAddr = new InetSocketAddress(IPV4_DST_ADDR, DST_PORT); in testPackStructInetDiagSockIdWithIpv4() local
142 final StructInetDiagSockId sockId = new StructInetDiagSockId(srcAddr, dstAddr); in testPackStructInetDiagSockIdWithIpv4()
151 final InetSocketAddress dstAddr = new InetSocketAddress(IPV6_DST_ADDR, DST_PORT); in testPackStructInetDiagSockIdWithIpv6() local
152 final StructInetDiagSockId sockId = new StructInetDiagSockId(srcAddr, dstAddr); in testPackStructInetDiagSockIdWithIpv6()
161 final InetSocketAddress dstAddr = new InetSocketAddress(IPV4_DST_ADDR, DST_PORT); in testPackStructInetDiagSockIdWithIpv4IfIndexCookie() local
163 new StructInetDiagSockId(srcAddr, dstAddr, IF_INDEX, COOKIE); in testPackStructInetDiagSockIdWithIpv4IfIndexCookie()
172 final InetSocketAddress dstAddr = new InetSocketAddress(IPV6_DST_ADDR, DST_PORT); in testPackStructInetDiagSockIdWithIpv6IfIndexCookie() local
174 new StructInetDiagSockId(srcAddr, dstAddr, IF_INDEX, COOKIE); in testPackStructInetDiagSockIdWithIpv6IfIndexCookie()
209 final InetSocketAddress dstAddr = new InetSocketAddress(IPV4_DST_ADDR, DST_PORT); in testToStringStructInetDiagSockIdWithIpv4() local
210 final StructInetDiagSockId sockId = new StructInetDiagSockId(srcAddr, dstAddr); in testToStringStructInetDiagSockIdWithIpv4()
[all …]
DInetDiagSocketTest.java279 final Inet6Address dstAddr = Inet6Address.getByAddress( in testInetDiagReqV2TcpInet6V4Mapped() local
284 new InetSocketAddress(dstAddr, 38415), in testInetDiagReqV2TcpInet6V4Mapped()
656 final Inet6Address dstAddr = Inet6Address.getByAddress( in testParseInetDiagResponseV4MappedV6() local
660 new InetSocketAddress(dstAddr, 38415), in testParseInetDiagResponseV4MappedV6()
665 private void doTestIsLoopback(InetAddress srcAddr, InetAddress dstAddr, boolean expected) { in doTestIsLoopback() argument
669 new InetSocketAddress(dstAddr, 38415) in doTestIsLoopback()
/packages/modules/Connectivity/common/src/com/android/net/module/util/bpf/
DIngressDiscardKey.java30 public final Inet6Address dstAddr; field in IngressDiscardKey
32 public IngressDiscardKey(final Inet6Address dstAddr) { in IngressDiscardKey() argument
33 this.dstAddr = dstAddr; in IngressDiscardKey()
42 public IngressDiscardKey(final InetAddress dstAddr) { in IngressDiscardKey() argument
43 this(getInet6Address(dstAddr)); in IngressDiscardKey()
/packages/modules/Connectivity/framework/src/android/net/
DNattKeepalivePacketData.java66 final InetAddress srcAddr, dstAddr; in nattKeepalivePacket() local
69 dstAddr = InetAddress.getByAddress(dstAddress.getAddress()); in nattKeepalivePacket()
74 if (srcAddr instanceof Inet4Address && dstAddr instanceof Inet4Address) { in nattKeepalivePacket()
76 (Inet4Address) srcAddr, srcPort, (Inet4Address) dstAddr, dstPort); in nattKeepalivePacket()
77 } else if (srcAddr instanceof Inet6Address && dstAddr instanceof Inet6Address) { in nattKeepalivePacket()
79 (Inet6Address) srcAddr, srcPort, (Inet6Address) dstAddr, dstPort); in nattKeepalivePacket()
DDscpPolicy.java86 @Nullable InetAddress dstAddr, in DscpPolicy() argument
93 this.mDstAddr = dstAddr; in DscpPolicy()
DIConnectivityManager.aidl189 in ISocketKeepaliveCallback cb, String srcAddr, int srcPort, String dstAddr); in startNattKeepalive() argument
193 String dstAddr, boolean automaticOnOffKeepalives, in Network underpinnedNetwork); in startNattKeepaliveWithFd() argument
/packages/modules/DnsResolver/tests/
Dtun_forwarder.h53 v4pair(int32_t srcAddr, int32_t dstAddr) { in v4pair()
55 dst.s_addr = static_cast<in_addr_t>(dstAddr); in v4pair()
66 v6pair(const in6_addr& srcAddr, const in6_addr& dstAddr) : src(srcAddr), dst(dstAddr) {} in v6pair()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/
DStructInetDiagSockId.java94 final InetAddress dstAddr; in parse() local
106 dstAddr = Inet4Address.getByAddress(dstAddrByte); in parse()
122 dstAddr = Inet6Address.getByAddress( in parse()
134 final InetSocketAddress dstSocketAddr = new InetSocketAddress(dstAddr, dstPort); in parse()
DInetDiagMessage.java409 final InetAddress dstAddr = msg.inetDiagMsg.id.remSocketAddress.getAddress(); in isLoopback() local
411 || isLoopbackAddress(dstAddr) in isLoopback()
412 || srcAddr.equals(dstAddr); in isLoopback()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DIkeTunUtils.java61 final InetAddress dstAddr = getSrcAddress(request); in awaitReqAndInjectResp() local
66 buildIkePacket(srcAddr, dstAddr, srcPort, dstPort, encapExpected, respIkePkt); in awaitReqAndInjectResp()
170 InetAddress dstAddr, in buildIkePacket() argument
185 final IpHeader ipPkt = getIpHeader(udpPkt.getProtocolId(), srcAddr, dstAddr, udpPkt); in buildIkePacket()
DPacketUtils.java122 public final InetAddress dstAddr; field in PacketUtils.IpHeader
128 this.dstAddr = dst; in IpHeader()
180 bb.put(dstAddr.getAddress()); in buildHeader()
235 bb.put(dstAddr.getAddress()); in getPacketBytes()
325 ShortBuffer dstBuffer = ByteBuffer.wrap(header.dstAddr.getAddress()).asShortBuffer(); in calculateChecksum()
DIpSecBaseTest.java226 void sendTo(byte[] data, InetAddress dstAddr, int port) throws Exception; in sendTo() argument
307 public void sendTo(byte[] data, InetAddress dstAddr, int port) throws Exception { in sendTo() argument
308 Os.sendto(mFd, data, 0, data.length, 0, dstAddr, port); in sendTo()
343 public void sendTo(byte[] data, InetAddress dstAddr, int port) throws Exception { in sendTo() argument
344 mSocket.send(new DatagramPacket(data, data.length, dstAddr, port)); in sendTo()
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
DPacketUtils.java82 public final InetAddress dstAddr; field in PacketUtils.IpHeader
88 this.dstAddr = dst; in IpHeader()
140 bb.put(dstAddr.getAddress()); in buildHeader()
195 bb.put(dstAddr.getAddress()); in getPacketBytes()
285 ShortBuffer dstBuffer = ByteBuffer.wrap(header.dstAddr.getAddress()).asShortBuffer(); in calculateChecksum()
DIkeTunUtils.java138 InetAddress dstAddr = getAddress(request, true /* shouldGetSource */); in awaitReqAndInjectResp() local
145 dstAddr, in awaitReqAndInjectResp()
346 InetAddress dstAddr, in buildIkePacket() argument
360 IpHeader ipPkt = getIpHeader(udpPkt.getProtocolId(), srcAddr, dstAddr, udpPkt); in buildIkePacket()
/packages/modules/Connectivity/Tethering/src/android/net/ip/
DNeighborPacketForwarder.java142 Inet6Address dstAddr; in getIpv6DestinationAddress() local
144 dstAddr = (Inet6Address) Inet6Address.getByAddress(Arrays.copyOfRange(recvbuf, in getIpv6DestinationAddress()
149 return dstAddr; in getIpv6DestinationAddress()
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/utils/
DInfraNetworkDevice.java74 public void sendEchoRequest(Inet6Address dstAddr) throws IOException { in sendEchoRequest() argument
75 ByteBuffer icmp6Packet = Ipv6Utils.buildEchoRequestPacket(ipv6Addr, dstAddr); in sendEchoRequest()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DOffloadController.java290 String dstAddr, int dstPort) { in start()
292 updateNatTimeout(proto, srcAddr, srcPort, dstAddr, dstPort); in start()
786 int proto, String srcAddr, int srcPort, String dstAddr, int dstPort) { in updateNatTimeout() argument
804 final Inet4Address dst = parseIPv4Address(dstAddr); in updateNatTimeout()
806 mLog.e("Failed to parse IPv4 address: " + dstAddr); in updateNatTimeout()
817 protoName, srcAddr, srcPort, dstAddr, dstPort); in updateNatTimeout()
DOffloadHardwareInterface.java139 String dstAddr, int dstPort) {} in onNatTimeoutUpdate() argument
/packages/modules/NetworkStack/src/android/net/util/
DConnectivityPacketSummary.java221 final String dstAddr = getIPv4AddressString(mPacket); in parseIPv4() local
223 sj.add(srcAddr).add(">").add(dstAddr); in parseIPv4()
249 final String dstAddr = getIPv6AddressString(mPacket); in parseIPv6() local
251 sj.add(srcAddr).add(">").add(dstAddr); in parseIPv6()
/packages/modules/Connectivity/framework/src/android/net/util/
DDnsUtils.java322 @NonNull InetAddress dstAddr) { in compareIpv6PrefixMatchLen() argument
324 final byte[] dstByte = dstAddr.getAddress(); in compareIpv6PrefixMatchLen()
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DVpnTest.java1209 final InetAddress dstAddr = getV4AddrByName(TEST_HOST); in doTestAutomaticOnOffKeepaliveMode() local
1210 assertNotNull(dstAddr); in doTestAutomaticOnOffKeepaliveMode()
1215 srcAddr, dstAddr, executor, callback); in doTestAutomaticOnOffKeepaliveMode()
1225 s.connect(new InetSocketAddress(dstAddr, 80)); in doTestAutomaticOnOffKeepaliveMode()
2016 private ByteBuffer buildIpv4UdpPacket(final Inet4Address dstAddr, final Inet4Address srcAddr, in buildIpv4UdpPacket() argument
2030 dstAddr); in buildIpv4UdpPacket() local
2037 private ByteBuffer buildIpv6UdpPacket(final Inet6Address dstAddr, final Inet6Address srcAddr, in buildIpv6UdpPacket() argument
2049 dstAddr); in buildIpv6UdpPacket()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DKeepaliveTracker.java569 final InetAddress dstAddr = ki.mPacket.getDstAddress(); in handleUpdateKeepaliveForClat()
571 if (!(dstAddr instanceof Inet4Address)) return ki; in handleUpdateKeepaliveForClat()
573 final Inet6Address address = ki.getNai().translateV4toClatV6((Inet4Address) dstAddr); in handleUpdateKeepaliveForClat()
/packages/modules/Connectivity/service/native/libs/libclat/
Dclatutils_test.cpp205 in6_addr nat64Prefix = tun.dstAddr(); // not realistic in TEST_F()
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/
DLegacyApfTest.java971 InetAddress dstAddr = InetAddress.getByAddress(IPV4_KEEPALIVE_DST_ADDR); in testApfFilterKeepaliveAck() local
976 parcel.dstAddress = dstAddr.getAddress(); in testApfFilterKeepaliveAck()
1009 dstAddr = InetAddress.getByAddress(IPV6_KEEPALIVE_DST_ADDR); in testApfFilterKeepaliveAck()
1015 ipv6Parcel.dstAddress = dstAddr.getAddress(); in testApfFilterKeepaliveAck()
1157 InetAddress dstAddr = InetAddress.getByAddress(IPV4_KEEPALIVE_DST_ADDR); in testApfFilterNattKeepalivePacket() local
1162 parcel.dstAddress = dstAddr.getAddress(); in testApfFilterNattKeepalivePacket()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DSupplicantStaIfaceHalTest.java811 byte[] dstAddr = {0x45, 0x23, 0x12, 0x12, 0x12, 0x45}; in addHlpReq()
816 assertTrue(mDut.addHlpReq(IFACE_NAME, dstAddr, hlpPacket)); in addHlpReq()
817 verify(mStaIfaceHalAidlMock).addHlpReq(eq(IFACE_NAME), eq(dstAddr), eq(hlpPacket)); in addHlpReq()

12