Home
last modified time | relevance | path

Searched refs:dstAddress (Results 1 – 25 of 69) sorted by relevance

123

/packages/modules/Connectivity/framework/src/android/net/
DNattKeepalivePacketData.java49 @NonNull InetAddress dstAddress, int dstPort, @NonNull byte[] data) throws in NattKeepalivePacketData() argument
51 super(srcAddress, srcPort, dstAddress, dstPort, data); in NattKeepalivePacketData()
59 InetAddress srcAddress, int srcPort, InetAddress dstAddress, int dstPort) in nattKeepalivePacket() argument
69 dstAddr = InetAddress.getByAddress(dstAddress.getAddress()); in nattKeepalivePacket()
87 Inet4Address srcAddress, int srcPort, Inet4Address dstAddress, int dstPort) in nattKeepalivePacketv4() argument
103 buf.put(dstAddress.getAddress()); in nattKeepalivePacketv4()
113 return new NattKeepalivePacketData(srcAddress, srcPort, dstAddress, dstPort, buf.array()); in nattKeepalivePacketv4()
117 Inet6Address srcAddress, int srcPort, Inet6Address dstAddress, int dstPort) in nattKeepalivePacketv6() argument
129 buf.put(dstAddress.getAddress()); in nattKeepalivePacketv6()
138 return new NattKeepalivePacketData(srcAddress, srcPort, dstAddress, dstPort, buf.array()); in nattKeepalivePacketv6()
[all …]
DTcpKeepalivePacketData.java71 @NonNull final InetAddress dstAddress, int dstPort, @NonNull final byte[] data, in TcpKeepalivePacketData() argument
74 super(srcAddress, srcPort, dstAddress, dstPort, data); in TcpKeepalivePacketData()
138 final InetAddress dstAddress = getDstAddress(); in equals() local
140 && dstAddress.equals(other.getDstAddress()) in equals()
186 InetAddress dstAddress = InetAddresses.parseNumericAddress(in.readString()); in readFromParcel() local
196 return new TcpKeepalivePacketData(srcAddress, srcPort, dstAddress, dstPort, packet, tcpSeq, in readFromParcel()
DKeepalivePacketData.java66 @IntRange(from = 0, to = 65535) int srcPort, @NonNull InetAddress dstAddress, in KeepalivePacketData() argument
70 this.mDstAddress = dstAddress; in KeepalivePacketData()
76 if (srcAddress == null || dstAddress == null || !srcAddress.getClass().getName() in KeepalivePacketData()
77 .equals(dstAddress.getClass().getName())) { in KeepalivePacketData()
/packages/modules/Connectivity/tests/common/java/android/net/
DNattKeepalivePacketDataTest.kt81 dstAddress: InetAddress? = TEST_DST_ADDRV4, in address()
83 ) = NattKeepalivePacketData.nattKeepalivePacket(srcAddress, srcPort, dstAddress, dstPort) in address()
101 nattKeepalivePacket(dstAddress = TEST_ADDRV6) in address()
117 nattKeepalivePacket(srcAddress = TEST_ADDRV6, dstAddress = TEST_ADDRV4MAPPEDV6) in testConstructor_afterR()
120 nattKeepalivePacket(srcAddress = TEST_ADDRV4MAPPEDV6, dstAddress = TEST_ADDRV6) in testConstructor_afterR()
125 dstAddress = TEST_ADDRV4MAPPEDV6, srcAddress = TEST_ADDRV4MAPPEDV6) in testConstructor_afterR()
127 assertEquals(TEST_ADDRV4, packet1.dstAddress) in testConstructor_afterR()
130 val packet2 = nattKeepalivePacket(srcAddress = TEST_ADDRV6, dstAddress = TEST_ADDRV6) in testConstructor_afterR()
132 assertEquals(TEST_ADDRV6, packet2.dstAddress) in testConstructor_afterR()
143 assertNotEquals(nattKeepalivePacket(dstAddress = TEST_SRC_ADDRV4), nattKeepalivePacket()) in testEquals()
DKeepalivePacketDataTest.kt49 dstAddress: InetAddress? = TEST_DST_ADDRV4, in address()
53 NonNullTestUtils.nullUnsafe(dstAddress), dstPort, data) in address()
65 TestKeepalivePacketData(dstAddress = null) in address()
72 TestKeepalivePacketData(dstAddress = TEST_ADDRV6) in address()
97 fun testDstAddress() = assertEquals(TEST_DST_ADDRV4, TestKeepalivePacketData().dstAddress)
DTcpKeepalivePacketDataTest.kt37 dstAddress: InetAddress = parseNumericAddress("192.0.2.231"), in <lambda>()
46 ) = TcpKeepalivePacketData(srcAddress, srcPort, dstAddress, dstPort, data, tcpSeq, tcpAck, in <lambda>()
61 assertNotEquals(makeData(dstAddress = parseNumericAddress("192.0.2.232")), makeData()) in <lambda>()
87 assertTrue(str.contains(data.dstAddress.hostAddress)) in <lambda>()
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/util/
DKeepalivePacketDataUtil.java54 final InetAddress dstAddress = pkt.getDstAddress(); in toStableParcelable() local
57 parcel.dstAddress = dstAddress.getAddress(); in toStableParcelable()
70 final InetAddress dstAddress = pkt.getDstAddress(); in toStableParcelable() local
73 parcel.dstAddress = dstAddress.getAddress(); in toStableParcelable()
136 p.dstAddress = data.getDstAddress().getAddress(); in parseTcpKeepalivePacketData()
/packages/modules/Connectivity/tests/unit/java/android/net/
DKeepalivePacketDataUtilTest.java76 testInfo.dstAddress = IPV4_KEEPALIVE_DST_ADDR; in testFromTcpKeepaliveStableParcelable()
91 assertEquals(InetAddress.getByAddress(testInfo.dstAddress), resultData.getDstAddress()); in testFromTcpKeepaliveStableParcelable()
149 testInfo.dstAddress = IPV4_KEEPALIVE_DST_ADDR; in testToTcpKeepaliveStableParcelable()
162 assertArrayEquals(resultData.dstAddress, IPV4_KEEPALIVE_DST_ADDR); in testToTcpKeepaliveStableParcelable()
186 testParcel.dstAddress = IPV4_KEEPALIVE_DST_ADDR; in testParseTcpKeepalivePacketData()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DTcpKeepaliveController.java153 if ((tcpDetails.srcAddress != null) && (tcpDetails.dstAddress != null) in fromStableParcelable()
155 && (tcpDetails.dstAddress.length == 4 /* V4 IP length */)) { in fromStableParcelable()
164 InetAddress.getByAddress(tcpDetails.dstAddress), in fromStableParcelable()
193 buf.put(tcpDetails.dstAddress); in buildV4Packet()
249 tcpDetails.dstAddress = getAddress((InetSocketAddress) dstSockAddr); in switchToRepairMode()
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/8/android/net/
DNattKeepalivePacketDataParcelable.aidl22 byte[] dstAddress;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/3/android/net/
DNattKeepalivePacketDataParcelable.aidl22 byte[] dstAddress;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/4/android/net/
DNattKeepalivePacketDataParcelable.aidl5 byte[] dstAddress;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/5/android/net/
DNattKeepalivePacketDataParcelable.aidl22 byte[] dstAddress;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/6/android/net/
DNattKeepalivePacketDataParcelable.aidl22 byte[] dstAddress;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/7/android/net/
DNattKeepalivePacketDataParcelable.aidl22 byte[] dstAddress;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/2/android/net/
DNattKeepalivePacketDataParcelable.aidl5 byte[] dstAddress;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/20/android/net/
DNattKeepalivePacketDataParcelable.aidl39 byte[] dstAddress;
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/
DNattKeepalivePacketDataParcelable.aidl23 byte[] dstAddress;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/13/android/net/
DNattKeepalivePacketDataParcelable.aidl39 byte[] dstAddress;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/21/android/net/
DNattKeepalivePacketDataParcelable.aidl39 byte[] dstAddress;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/14/android/net/
DNattKeepalivePacketDataParcelable.aidl39 byte[] dstAddress;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/current/android/net/
DNattKeepalivePacketDataParcelable.aidl39 byte[] dstAddress;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/15/android/net/
DNattKeepalivePacketDataParcelable.aidl39 byte[] dstAddress;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/9/android/net/
DNattKeepalivePacketDataParcelable.aidl23 byte[] dstAddress;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/10/android/net/
DNattKeepalivePacketDataParcelable.aidl24 byte[] dstAddress;

123