/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | KeepalivePacketDataUtilTest.java | 64 final int dstPort = 4321; in testFromTcpKeepaliveStableParcelable() local 76 testInfo.dstPort = dstPort; in testFromTcpKeepaliveStableParcelable() 92 assertEquals(testInfo.dstPort, resultData.getDstPort()); in testFromTcpKeepaliveStableParcelable() 123 assertEquals(buf.getShort(), dstPort); in testFromTcpKeepaliveStableParcelable() local 138 final int dstPort = 4321; in testToTcpKeepaliveStableParcelable() local 149 testInfo.dstPort = dstPort; in testToTcpKeepaliveStableParcelable() 163 assertEquals(resultData.dstPort, dstPort); in testToTcpKeepaliveStableParcelable() 181 final int dstPort = 4321; in testParseTcpKeepalivePacketData() local 192 testParcel.dstPort = dstPort; in testParseTcpKeepalivePacketData()
|
/packages/modules/NetworkStack/common/netlinkclient/src/android/net/netlink/ |
D | ConntrackMessage.java | 110 public final short dstPort; field in ConntrackMessage.Tuple 117 this.dstPort = proto.dstPort; in Tuple() 129 && this.dstPort == that.dstPort in equals() 135 return Objects.hash(srcIp, dstIp, srcPort, dstPort, protoNum); in hashCode() 147 + dstIpStr + ":" + Short.toUnsignedInt(dstPort) in toString() 175 public final short dstPort; field in ConntrackMessage.TupleProto 177 public TupleProto(byte protoNum, short srcPort, short dstPort) { in TupleProto() argument 180 this.dstPort = dstPort; in TupleProto() 371 short dstPort = 0; in parseTupleProto() local 390 dstPort = nlAttr.getValueAsBe16((short) 0); in parseTupleProto() [all …]
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | NattKeepalivePacketData.java | 46 @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 63 if (dstPort != NattSocketKeepalive.NATT_PORT) { in nattKeepalivePacket() 80 buf.putShort((short) dstPort); in nattKeepalivePacket() 88 return new NattKeepalivePacketData(srcAddress, srcPort, dstAddress, dstPort, buf.array()); in nattKeepalivePacket() 113 final int dstPort = in.readInt(); 116 dstAddress, dstPort);
|
D | TcpKeepalivePacketData.java | 71 @NonNull final InetAddress dstAddress, int dstPort, @NonNull final byte[] data, in TcpKeepalivePacketData() argument 74 super(srcAddress, srcPort, dstAddress, dstPort, data); in TcpKeepalivePacketData() 188 int dstPort = in.readInt(); in readFromParcel() local 196 return new TcpKeepalivePacketData(srcAddress, srcPort, dstAddress, dstPort, packet, tcpSeq, in readFromParcel()
|
D | KeepalivePacketData.java | 67 @IntRange(from = 0, to = 65535) int dstPort, in KeepalivePacketData() 72 this.mDstPort = dstPort; in KeepalivePacketData() 83 if (!IpUtils.isValidUdpOrTcpPort(srcPort) || !IpUtils.isValidUdpOrTcpPort(dstPort)) { in KeepalivePacketData()
|
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | Tether4Key.java | 52 public final int dstPort; field in Tether4Key 56 final int dstPort) { in Tether4Key() argument 65 this.dstPort = dstPort; in Tether4Key() 76 Short.toUnsignedInt((short) srcPort), Short.toUnsignedInt((short) dstPort)); in toString()
|
D | Tether4Value.java | 57 public final int dstPort; field in Tether4Value 66 final int dstPort, final long lastUsed) { in Tether4Value() argument 78 this.dstPort = dstPort; in Tether4Value() 91 Short.toUnsignedInt((short) srcPort), Short.toUnsignedInt((short) dstPort), in toString()
|
D | OffloadController.java | 300 String dstAddr, int dstPort) { in start() 302 updateNatTimeout(proto, srcAddr, srcPort, dstAddr, dstPort); in start() 787 int proto, String srcAddr, int srcPort, String dstAddr, int dstPort) { in updateNatTimeout() argument 811 if (!isValidUdpOrTcpPort(dstPort)) { in updateNatTimeout() 812 mLog.e("Invalid dst port: " + dstPort); in updateNatTimeout() 818 protoName, srcAddr, srcPort, dstAddr, dstPort); in updateNatTimeout() 825 proto, src, srcPort, dst, dstPort, timeoutSec); in updateNatTimeout()
|
D | BpfCoordinator.java | 1068 publicPort = key.dstPort; in ipv4RuleToString() 1084 public4, publicPort, dst4, value.dstPort, value.ethDstMac, ageStr); in ipv4RuleToString() 1537 e.tupleOrig.dstIp.getAddress(), e.tupleOrig.srcPort, e.tupleOrig.dstPort); in makeTetherUpstream4Key() 1545 e.tupleReply.dstIp.getAddress(), e.tupleReply.srcPort, e.tupleReply.dstPort); in makeTetherDownstream4Key() 1555 toIpv4MappedAddressBytes(e.tupleReply.srcIp), e.tupleReply.dstPort, in makeTetherUpstream4Value() 1566 e.tupleOrig.dstPort, e.tupleOrig.srcPort, in makeTetherDownstream4Value() 1879 Inet4Address dst4, short dstPort) { in updateConntrackTimeout() argument 1890 proto, src4, (int) srcPort, dst4, (int) dstPort, timeoutSec); in updateConntrackTimeout() 1899 + "dstPort: " + Short.toUnsignedInt(dstPort) + "), " in updateConntrackTimeout() 1914 ipv4MappedAddressBytesToIpv4Address(v.dst46), (short) v.dstPort, in maybeRefreshConntrackTimeout() [all …]
|
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/ |
D | IkeTunUtils.java | 140 int dstPort = getPort(request, true /* shouldGetSource */); in awaitReqAndInjectResp() local 147 dstPort, in awaitReqAndInjectResp() 309 public final int dstPort; field in PortPair 313 dstPort = destinationPort; in PortPair() 348 int dstPort, in buildIkePacket() argument 359 UdpHeader udpPkt = new UdpHeader(srcPort, dstPort, new BytePayload(ikePacket)); in buildIkePacket()
|
D | PacketUtils.java | 238 public final short dstPort; field in PacketUtils.UdpHeader 241 public UdpHeader(int srcPort, int dstPort, Payload payload) { in UdpHeader() argument 243 this.dstPort = (short) dstPort; in UdpHeader() 265 resultBuffer.putShort(dstPort); in addPacketBytes() 298 newChecksum = addAndWrapForChecksum(newChecksum, dstPort); in calculateChecksum()
|
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/util/ |
D | KeepalivePacketDataUtil.java | 66 parcel.dstPort = pkt.getDstPort(); in toStableParcelable() 82 parcel.dstPort = pkt.getDstPort(); in toStableParcelable() 112 tcpDetails.dstPort, in fromStableParcelable() 142 buf.putShort((short) tcpDetails.dstPort); in buildV4Packet() 212 p.dstPort = data.getDstPort(); in parseTcpKeepalivePacketData()
|
/packages/modules/Connectivity/tests/common/java/android/net/ |
D | KeepalivePacketDataTest.kt | 56 dstPort: Int = TEST_DST_PORT, in address() 58 ) : KeepalivePacketData(srcAddress, srcPort, dstAddress, dstPort, data) in address() 94 data = TestKeepalivePacketData(dstPort = INVALID_PORT) in address() 115 fun testDstPort() = assertEquals(TEST_DST_PORT, TestKeepalivePacketData().dstPort)
|
D | TcpKeepalivePacketDataTest.kt | 39 dstPort: Int = 4321, in <lambda>() 47 ) = TcpKeepalivePacketData(srcAddress, srcPort, dstAddress, dstPort, data, tcpSeq, tcpAck, in <lambda>() 63 assertNotEquals(makeData(dstPort = 4322), makeData()) in <lambda>() 93 assertTrue(str.contains(data.dstPort.toString())) in <lambda>()
|
D | NattKeepalivePacketDataTest.kt | 60 dstPort: Int = NATT_PORT in address() 61 ) = NattKeepalivePacketData.nattKeepalivePacket(srcAddress, srcPort, dstAddress, dstPort) in address() 66 nattKeepalivePacket(dstPort = TEST_PORT) in address()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | FrameParser.java | 180 int dstPort = getUnsignedShort(data); in parseTcpPacket() local 182 if (dstPort == HTTPS_PORT) { in parseTcpPacket() 184 } else if (HTTP_PORTS.contains(dstPort)) { in parseTcpPacket() 197 int dstPort = getUnsignedShort(data); in parseUdpPacket() local 201 if ((srcPort == UDP_PORT_BOOTPC && dstPort == UDP_PORT_BOOTPS) in parseUdpPacket() 202 || (srcPort == UDP_PORT_BOOTPS && dstPort == UDP_PORT_BOOTPC)) { in parseUdpPacket() 206 if (srcPort == UDP_PORT_NTP || dstPort == UDP_PORT_NTP) { in parseUdpPacket()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | IkeTunUtils.java | 63 final int dstPort = getSrcPort(request); in awaitReqAndInjectResp() local 66 buildIkePacket(srcAddr, dstAddr, srcPort, dstPort, encapExpected, respIkePkt); in awaitReqAndInjectResp() 172 int dstPort, in buildIkePacket() argument 184 final UdpHeader udpPkt = new UdpHeader(srcPort, dstPort, new BytePayload(payload)); in buildIkePacket()
|
D | PacketUtils.java | 278 public final short dstPort; field in PacketUtils.UdpHeader 281 public UdpHeader(int srcPort, int dstPort, Payload payload) { in UdpHeader() argument 283 this.dstPort = (short) dstPort; in UdpHeader() 305 resultBuffer.putShort(dstPort); in addPacketBytes() 338 newChecksum = addAndWrapForChecksum(newChecksum, dstPort); in calculateChecksum()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/ |
D | ApfTest.java | 1588 final int dstPort = 54321; in testApfFilterKeepaliveAck() local 1609 parcel.dstPort = dstPort; in testApfFilterKeepaliveAck() 1621 dstPort, srcPort, ackNum, seqNum + 1, 0 /* dataLength */)); in testApfFilterKeepaliveAck() 1625 dstPort, srcPort, ackNum + 100, seqNum, 0 /* dataLength */)); in testApfFilterKeepaliveAck() 1628 dstPort, srcPort, ackNum, seqNum + 1, 10 /* dataLength */)); in testApfFilterKeepaliveAck() 1648 ipv6Parcel.dstPort = dstPort; in testApfFilterKeepaliveAck() 1660 dstPort, srcPort, ackNum, seqNum + 1)); in testApfFilterKeepaliveAck() 1664 dstPort, srcPort, ackNum + 100, seqNum)); in testApfFilterKeepaliveAck() 1683 dstPort, srcPort, ackNum, seqNum + 1, 0 /* dataLength */)); in testApfFilterKeepaliveAck() 1687 dstPort, srcPort, ackNum + 100, seqNum, 0 /* dataLength */)); in testApfFilterKeepaliveAck() [all …]
|
/packages/modules/NetworkStack/src/android/net/apf/ |
D | ApfFilter.java | 967 public final int dstPort; field in ApfFilter.NattKeepaliveResponse.NattKeepaliveResponseData 971 srcPort = sentKeepalivePacket.dstPort; in NattKeepaliveResponseData() 973 dstPort = sentKeepalivePacket.srcPort; in NattKeepaliveResponseData() 986 mPortFingerprint = generatePortFingerprint(mPacket.srcPort, mPacket.dstPort); in NattKeepaliveResponse() 989 byte[] generatePortFingerprint(int srcPort, int dstPort) { in generatePortFingerprint() argument 993 fp.putShort((short) dstPort); in generatePortFingerprint() 1034 InetAddress.getByAddress(mPacket.dstAddress), mPacket.dstPort)); in toString() 1047 public final int dstPort; field in ApfFilter.TcpKeepaliveAck.TcpKeepaliveAckData 1054 srcPort = sentKeepalivePacket.dstPort; in TcpKeepaliveAckData() 1056 dstPort = sentKeepalivePacket.srcPort; in TcpKeepaliveAckData() [all …]
|
/packages/modules/Connectivity/Tethering/bpf_progs/ |
D | bpf_tethering.h | 133 __be16 dstPort; // destination tcp/udp/... ports member 189 __be16 dstPort; // destination TCP/UDP/... ports member 200 __be16 dstPort; // destination tcp/udp/... ports member
|
D | offload.c | 490 .dstPort = is_tcp ? tcph->dest : udph->dest, in do_forward4() 605 bpf_l4_csum_replace(skb, l4_offs_csum, k.dstPort, v->dstPort, sz2 | l4_flags); in do_forward4() 607 &v->dstPort, sz2, 0); in do_forward4()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/ |
D | ConntrackMessageTest.java | 177 assertEquals((short) 443, conntrackMessage.tupleOrig.dstPort); in testConntrackParseIPv4TcpTimeoutUpdate() 226 assertEquals((short) 443, conntrackMessage.tupleOrig.dstPort); in testConntrackParseIPv4UdpTimeoutUpdate() 320 assertEquals((short) 443, conntrackMessage.tupleOrig.dstPort); in testParseCtNew() 328 assertEquals((short) 62449, conntrackMessage.tupleReply.dstPort); in testParseCtNew()
|
/packages/modules/NetworkStack/src/android/net/util/ |
D | ConnectivityPacketSummary.java | 375 final int dstPort = asUint(mPacket.getShort()); in parseUDP() local 376 sj.add(asString(srcPort)).add(">").add(asString(dstPort)); in parseUDP() 379 if (srcPort == DHCP4_CLIENT_PORT || dstPort == DHCP4_CLIENT_PORT) { in parseUDP()
|
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/7/android/net/ |
D | NattKeepalivePacketDataParcelable.aidl | 23 int dstPort;
|