Home
last modified time | relevance | path

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

123

/packages/modules/Connectivity/framework/src/android/net/
DNattKeepalivePacketData.java46 @NonNull InetAddress dstAddress, int dstPort, @NonNull byte[] data) throws in NattKeepalivePacketData() argument
48 super(srcAddress, srcPort, dstAddress, dstPort, data); in NattKeepalivePacketData()
56 InetAddress srcAddress, int srcPort, InetAddress dstAddress, int dstPort) in nattKeepalivePacket() argument
59 if (!(srcAddress instanceof Inet4Address) || !(dstAddress instanceof Inet4Address)) { in nattKeepalivePacket()
78 buf.put(dstAddress.getAddress()); in nattKeepalivePacket()
88 return new NattKeepalivePacketData(srcAddress, srcPort, dstAddress, dstPort, buf.array()); in nattKeepalivePacket()
110 final InetAddress dstAddress =
116 dstAddress, dstPort);
133 final InetAddress dstAddress = getDstAddress(); in equals() local
135 && dstAddress.equals(other.getDstAddress()) in equals()
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/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/common/java/android/net/
DKeepalivePacketDataTest.kt55 dstAddress: InetAddress? = TEST_DST_ADDRV4, in address()
58 ) : KeepalivePacketData(srcAddress, srcPort, dstAddress, dstPort, data) in address()
73 data = TestKeepalivePacketData(dstAddress = null) in address()
80 data = TestKeepalivePacketData(dstAddress = TEST_ADDRV6) in address()
107 fun testDstAddress() = assertEquals(TEST_DST_ADDRV4, TestKeepalivePacketData().dstAddress)
DNattKeepalivePacketDataTest.kt58 dstAddress: InetAddress? = TEST_DST_ADDRV4, in address()
60 ) = NattKeepalivePacketData.nattKeepalivePacket(srcAddress, srcPort, dstAddress, dstPort) in address()
79 nattKeepalivePacket(dstAddress = TEST_ADDRV6) in address()
101 assertNotEquals(nattKeepalivePacket(dstAddress = TEST_SRC_ADDRV4), nattKeepalivePacket()) in testEquals()
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/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()
192 testParcel.dstAddress = IPV4_KEEPALIVE_DST_ADDR; in testParseTcpKeepalivePacketData()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DTcpKeepaliveController.java150 if ((tcpDetails.srcAddress != null) && (tcpDetails.dstAddress != null) in fromStableParcelable()
152 && (tcpDetails.dstAddress.length == 4 /* V4 IP length */)) { in fromStableParcelable()
161 InetAddress.getByAddress(tcpDetails.dstAddress), in fromStableParcelable()
190 buf.put(tcpDetails.dstAddress); in buildV4Packet()
246 tcpDetails.dstAddress = getAddress((InetSocketAddress) dstSockAddr); in switchToRepairMode()
/packages/modules/NetworkStack/src/android/net/apf/
DApfFilter.java1041 public final byte[] dstAddress; field in ApfFilter.NattKeepaliveResponse.NattKeepaliveResponseData
1045 srcAddress = sentKeepalivePacket.dstAddress; in NattKeepaliveResponseData()
1047 dstAddress = sentKeepalivePacket.srcAddress; in NattKeepaliveResponseData()
1060 mSrcDstAddr = concatArrays(mPacket.srcAddress, mPacket.dstAddress); in NattKeepaliveResponse()
1109 InetAddress.getByAddress(mPacket.dstAddress), mPacket.dstPort)); in toString()
1121 public final byte[] dstAddress; field in ApfFilter.TcpKeepaliveAck.TcpKeepaliveAckData
1128 srcAddress = sentKeepalivePacket.dstAddress; in TcpKeepaliveAckData()
1130 dstAddress = sentKeepalivePacket.srcAddress; in TcpKeepaliveAckData()
1164 InetAddress.getByAddress(mPacket.dstAddress), mPacket.dstPort), in toString()
1184 super(packet, concatArrays(packet.srcAddress, packet.dstAddress) /* srcDstAddr */); in TcpKeepaliveAckV4()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/hal/
DWifiStaIface.java327 MacAddress srcAddress, MacAddress dstAddress, int periodInMs) { in startSendingKeepAlivePackets() argument
330 srcAddress, dstAddress, periodInMs)); in startSendingKeepAlivePackets()
/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/8/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/5/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/3/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/current/android/net/
DNattKeepalivePacketDataParcelable.aidl39 byte[] dstAddress;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/18/android/net/
DNattKeepalivePacketDataParcelable.aidl39 byte[] dstAddress;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/11/android/net/
DNattKeepalivePacketDataParcelable.aidl39 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/16/android/net/
DNattKeepalivePacketDataParcelable.aidl39 byte[] dstAddress;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/10/android/net/
DNattKeepalivePacketDataParcelable.aidl24 byte[] dstAddress;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/14/android/net/
DNattKeepalivePacketDataParcelable.aidl39 byte[] dstAddress;

123