/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | IpSecManagerTest.java | 51 import static android.system.OsConstants.IPPROTO_TCP; 632 if (protocol == IPPROTO_TCP) { 685 if (protocol == IPPROTO_TCP) { 873 checkTransform(IPPROTO_TCP, IPV4_LOOPBACK, crypt, auth, null, false, 1, false); 874 checkTransform(IPPROTO_TCP, IPV4_LOOPBACK, crypt, auth, null, false, 1, true); 881 checkTransform(IPPROTO_TCP, IPV6_LOOPBACK, crypt, auth, null, false, 1, false); 882 checkTransform(IPPROTO_TCP, IPV6_LOOPBACK, crypt, auth, null, false, 1, true); 905 checkTransform(IPPROTO_TCP, IPV4_LOOPBACK, crypt, auth, null, false, 1, false); 906 checkTransform(IPPROTO_TCP, IPV4_LOOPBACK, crypt, auth, null, false, 1, true); 913 checkTransform(IPPROTO_TCP, IPV6_LOOPBACK, crypt, auth, null, false, 1, false); [all …]
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/ |
D | PacketBuilderTest.java | 21 import static android.system.OsConstants.IPPROTO_TCP; 524 if (l4proto != IPPROTO_TCP && l4proto != IPPROTO_UDP) { in buildPacket() 550 if (l4proto == IPPROTO_TCP) { in buildPacket() 597 if (l4proto != IPPROTO_TCP && l4proto != IPPROTO_UDP) { in checkIpv4Header() 611 if (l4proto == IPPROTO_TCP) { in checkIpv4Header() 614 assertEquals((byte) IPPROTO_TCP, ipv4Header.protocol); in checkIpv4Header() 634 if (l4proto != IPPROTO_TCP && l4proto != IPPROTO_UDP) { in checkIpv6Header() 646 if (l4proto == IPPROTO_TCP) { in checkIpv6Header() 648 assertEquals((byte) IPPROTO_TCP, ipv6Header.nextHeader); in checkIpv6Header() 677 checkIpv4Header(IPPROTO_TCP, hasData, actual); in checkTcpPacket() [all …]
|
/packages/modules/adb/ |
D | sysdeps_unix.cpp | 35 if (adb_setsockopt(fd, IPPROTO_TCP, TCP_KEEPIDLE, &interval_sec, sizeof(interval_sec))) { in set_tcp_keepalive() 39 if (adb_setsockopt(fd, IPPROTO_TCP, TCP_KEEPALIVE, &interval_sec, sizeof(interval_sec))) { in set_tcp_keepalive() 46 if (adb_setsockopt(fd, IPPROTO_TCP, TCP_KEEPINTVL, &interval_sec, sizeof(interval_sec))) { in set_tcp_keepalive() 56 if (adb_setsockopt(fd, IPPROTO_TCP, TCP_KEEPCNT, &keepcnt, sizeof(keepcnt))) { in set_tcp_keepalive()
|
/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | TcpKeepaliveController.java | 29 import static android.system.OsConstants.IPPROTO_TCP; 189 buf.put((byte) IPPROTO_TCP); in buildV4Packet() 260 Os.setsockoptInt(fd, IPPROTO_TCP, TCP_REPAIR, TCP_REPAIR_ON); in switchToRepairMode() 268 Os.setsockoptInt(fd, IPPROTO_TCP, TCP_REPAIR_QUEUE, TCP_SEND_QUEUE); in switchToRepairMode() 269 tcpDetails.seq = Os.getsockoptInt(fd, IPPROTO_TCP, TCP_QUEUE_SEQ); in switchToRepairMode() 271 Os.setsockoptInt(fd, IPPROTO_TCP, TCP_REPAIR_QUEUE, TCP_RECV_QUEUE); in switchToRepairMode() 272 tcpDetails.ack = Os.getsockoptInt(fd, IPPROTO_TCP, TCP_QUEUE_SEQ); in switchToRepairMode() 274 Os.setsockoptInt(fd, IPPROTO_TCP, TCP_REPAIR_QUEUE, TCP_NO_QUEUE); in switchToRepairMode() 323 Os.setsockoptInt(fd, IPPROTO_TCP, TCP_REPAIR, TCP_REPAIR_OFF); in switchOutOfRepairMode()
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/netlink/ |
D | InetDiagSocketTest.java | 23 import static android.system.OsConstants.IPPROTO_TCP; 143 byte[] msg = InetDiagMessage.inetDiagReqV2(IPPROTO_TCP, local, remote, AF_INET6, in testInetDiagReqV2TcpInet6() 180 byte[] msg = InetDiagMessage.inetDiagReqV2(IPPROTO_TCP, local, remote, AF_INET, in testInetDiagReqV2TcpInetWithExt() 189 msg = InetDiagMessage.inetDiagReqV2(IPPROTO_TCP, local, remote, AF_INET6, in testInetDiagReqV2TcpInetWithExt() 227 byte[] msgExt = InetDiagMessage.inetDiagReqV2(IPPROTO_TCP, null, null, AF_INET6, in testInetDiagReqV2TcpInet6NoIdSpecified() 231 msg = InetDiagMessage.inetDiagReqV2(IPPROTO_TCP, null, remote, AF_INET6, in testInetDiagReqV2TcpInet6NoIdSpecified() 238 msg = InetDiagMessage.inetDiagReqV2(IPPROTO_TCP, local, null, AF_INET6, in testInetDiagReqV2TcpInet6NoIdSpecified() 244 msg = InetDiagMessage.inetDiagReqV2(IPPROTO_TCP, null, null, AF_INET6, in testInetDiagReqV2TcpInet6NoIdSpecified() 282 IPPROTO_TCP, in testInetDiagReqV2TcpInet6V4Mapped() 322 final byte[] msg = InetDiagMessage.inetDiagReqV2(IPPROTO_TCP, sockId, AF_INET6, in testInetDiagReqV2TcpInet6Destroy()
|
D | ConntrackMessageTest.java | 89 OsConstants.IPPROTO_TCP, in makeIPv4TimeoutUpdateRequestTcp() 175 assertEquals((byte) OsConstants.IPPROTO_TCP, conntrackMessage.tupleOrig.protoNum); in testConntrackParseIPv4TcpTimeoutUpdate() 318 assertEquals((byte) OsConstants.IPPROTO_TCP, conntrackMessage.tupleOrig.protoNum); in testParseCtNew() 326 assertEquals((byte) OsConstants.IPPROTO_TCP, conntrackMessage.tupleReply.protoNum); in testParseCtNew()
|
/packages/modules/Bluetooth/system/gd/hal/ |
D | snoop_logger_socket_thread_test.cc | 101 int socket_fd = socket(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, IPPROTO_TCP); in TEST_F() 128 int socket_fd = socket(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, IPPROTO_TCP); in TEST_F() 173 int socket_fd = socket(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, IPPROTO_TCP); in TEST_F() 210 int socket_fd = socket(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, IPPROTO_TCP); in TEST_F() 248 int socket_fd = socket(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, IPPROTO_TCP); in TEST_F()
|
/packages/modules/NetworkStack/tests/integration/signature/android/net/netlink/ |
D | InetDiagSocketIntegrationTest.java | 21 import static android.system.OsConstants.IPPROTO_TCP; 106 protocol = IPPROTO_TCP; in TcpConnection() 176 checkConnectionOwnerUid(IPPROTO_TCP, udp.local, udp.remote, false); in checkGetConnectionOwnerUid() 210 mCm.getConnectionOwnerUid(IPPROTO_TCP, src, dst); in testB141603906()
|
/packages/modules/Connectivity/service-t/native/libs/libnetworkstats/ |
D | NetworkTraceHandlerTest.cpp | 116 .ipProto = IPPROTO_TCP, in TEST_F() 141 .ipProto = IPPROTO_TCP, in TEST_F() 148 .ipProto = IPPROTO_TCP, in TEST_F() 288 pkt.ipProto = IPPROTO_TCP; in TEST_F() 328 pkt.ipProto = IPPROTO_TCP; in TEST_F() 365 pkt.ipProto = IPPROTO_TCP; in TEST_F()
|
/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | QosSocketFilterTest.java | 24 import static android.system.OsConstants.IPPROTO_TCP; 113 assertFalse(socketFilter.matchesProtocol(IPPROTO_TCP)); in testProtocolMatch() 114 assertFalse(socketFilter6.matchesProtocol(IPPROTO_TCP)); in testProtocolMatch()
|
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/ |
D | PacketBuilder.java | 21 import static android.system.OsConstants.IPPROTO_TCP; 284 if (l4proto != IPPROTO_TCP && l4proto != IPPROTO_UDP) { in allocate() 296 packetLen += (l4proto == IPPROTO_TCP) ? Struct.getSize(TcpHeader.class) in allocate()
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | BpfCoordinatorTest.java | 33 import static android.system.OsConstants.IPPROTO_TCP; 303 private short mL4proto = (short) IPPROTO_TCP; 310 if (proto != IPPROTO_TCP && proto != IPPROTO_UDP) { in setProto() 327 private short mL4proto = (short) IPPROTO_TCP; 334 if (proto != IPPROTO_TCP && proto != IPPROTO_UDP) { in setProto() 400 private short mProto = (short) IPPROTO_TCP; 417 if (proto != IPPROTO_TCP && proto != IPPROTO_UDP) { in setProto() 1954 .setProto(IPPROTO_TCP).build(); in testSetDataLimitOnRule4Change() 1956 .setProto(IPPROTO_TCP).build(); in testSetDataLimitOnRule4Change() 1970 .setProto(IPPROTO_TCP) in testSetDataLimitOnRule4Change() [all …]
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/ip/ |
D | ConntrackMonitorTest.java | 20 import static android.system.OsConstants.IPPROTO_TCP; 212 new TupleProto((byte) IPPROTO_TCP, (short) 62449, (short) 443)), in makeTestConntrackEvent() 214 new TupleProto((byte) IPPROTO_TCP, (short) 443, (short) 62449)), in makeTestConntrackEvent()
|
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/ |
D | PacketForwarderBase.java | 19 import static com.android.testutils.PacketReflector.IPPROTO_TCP; 177 case IPPROTO_TCP: in processPacket()
|
D | PacketReflector.java | 59 static final byte IPPROTO_TCP = 6; field in PacketReflector 223 case IPPROTO_TCP: in processPacket()
|
/packages/modules/DnsResolver/tests/ |
D | tun_forwarder.cpp | 262 case IPPROTO_TCP: in validateIpv4Packet() 283 case IPPROTO_TCP: in validateIpv6Packet() 349 case IPPROTO_TCP: in translateIpv4Packet() 381 case IPPROTO_TCP: in translateIpv6Packet()
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | QosSocketFilter.java | 24 import static android.system.OsConstants.IPPROTO_TCP; 207 if ((mQosSocketInfo.getSocketType() == SOCK_STREAM && protocol == IPPROTO_TCP) in matchesProtocol()
|
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/ |
D | IpUtils.java | 22 import static android.system.OsConstants.IPPROTO_TCP; 146 return transportChecksum(buf, IPPROTO_TCP, ipOffset, transportOffset, transportLen); in tcpChecksum()
|
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/ |
D | InetDiagMessage.java | 23 import static android.system.OsConstants.IPPROTO_TCP; 301 return inetDiagReqV2(IPPROTO_TCP, in buildInetDiagReqForAliveTcpSockets() 457 destroySockets(IPPROTO_TCP, TCP_ALIVE_STATE_FILTER, in destroyLiveTcpSockets() 479 destroySockets(IPPROTO_TCP, TCP_ALIVE_STATE_FILTER, in destroyLiveTcpSocketsByOwnerUids()
|
/packages/modules/DnsResolver/tests/dns_responder/ |
D | dns_responder.cpp | 172 case IPPROTO_TCP: in dnsproto2str() 539 setResponseProbability(response_probability, IPPROTO_TCP); in setResponseProbability() 551 case IPPROTO_TCP: in setResponseProbability() 564 case IPPROTO_TCP: in getResponseProbability() 723 handleQuery(IPPROTO_TCP); in requestHandler() 1111 case IPPROTO_TCP: in handleQuery() 1159 case IPPROTO_TCP: in handleQuery() 1181 const char* method_str = (protocol == IPPROTO_TCP) ? "write()" : "sendto()"; in handleQuery()
|
/packages/modules/Connectivity/Tethering/tests/privileged/src/com/android/networkstack/tethering/ |
D | ConntrackSocketTest.java | 20 import static android.system.OsConstants.IPPROTO_TCP; 119 && tuple.protoNum == IPPROTO_TCP in findConnectionOrThrow()
|
/packages/modules/Connectivity/bpf_progs/ |
D | block.c | 37 case IPPROTO_TCP: in block_port()
|
D | offload.c | 167 if (ip6->nexthdr == IPPROTO_TCP) { 620 if (!updatetime.updatetime && ip->protocol != IPPROTO_TCP) TC_PUNT(NON_TCP); in do_forward4() 624 if (updatetime.updatetime && (ip->protocol != IPPROTO_TCP) && (ip->protocol != IPPROTO_UDP)) in do_forward4() 629 const bool is_tcp = !updatetime.updatetime || (ip->protocol == IPPROTO_TCP); in do_forward4()
|
D | offload@mainline.c | 167 if (ip6->nexthdr == IPPROTO_TCP) { 620 if (!updatetime.updatetime && ip->protocol != IPPROTO_TCP) TC_PUNT(NON_TCP); in do_forward4() 624 if (updatetime.updatetime && (ip->protocol != IPPROTO_TCP) && (ip->protocol != IPPROTO_UDP)) in do_forward4() 629 const bool is_tcp = !updatetime.updatetime || (ip->protocol == IPPROTO_TCP); in do_forward4()
|
/packages/modules/DnsResolver/ |
D | DnsTlsServer.h | 58 int protocol = IPPROTO_TCP;
|