/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | IpSecManagerTest.java | 50 import static android.system.OsConstants.IPPROTO_TCP; 527 if (protocol == IPPROTO_TCP) { in checkTransform() 580 if (protocol == IPPROTO_TCP) { in checkStatsChecker() 768 checkTransform(IPPROTO_TCP, IPV4_LOOPBACK, crypt, auth, null, false, 1, false); in testAesCbcHmacMd5Tcp4() 769 checkTransform(IPPROTO_TCP, IPV4_LOOPBACK, crypt, auth, null, false, 1, true); in testAesCbcHmacMd5Tcp4() 776 checkTransform(IPPROTO_TCP, IPV6_LOOPBACK, crypt, auth, null, false, 1, false); in testAesCbcHmacMd5Tcp6() 777 checkTransform(IPPROTO_TCP, IPV6_LOOPBACK, crypt, auth, null, false, 1, true); in testAesCbcHmacMd5Tcp6() 800 checkTransform(IPPROTO_TCP, IPV4_LOOPBACK, crypt, auth, null, false, 1, false); in testAesCbcHmacSha1Tcp4() 801 checkTransform(IPPROTO_TCP, IPV4_LOOPBACK, crypt, auth, null, false, 1, true); in testAesCbcHmacSha1Tcp4() 808 checkTransform(IPPROTO_TCP, IPV6_LOOPBACK, crypt, auth, null, false, 1, false); in testAesCbcHmacSha1Tcp6() [all …]
|
D | IpSecBaseTest.java | 551 Os.socket(domain, OsConstants.SOCK_STREAM, OsConstants.IPPROTO_TCP)); in getNativeTcpSocketPair() 553 Os.socket(domain, OsConstants.SOCK_STREAM, OsConstants.IPPROTO_TCP)); in getNativeTcpSocketPair() 599 Os.socket(getDomain(localAddr), OsConstants.SOCK_STREAM, OsConstants.IPPROTO_TCP)); in getJavaTcpSocketPair()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/ |
D | InetDiagSocketTest.java | 23 import static android.system.OsConstants.IPPROTO_TCP; 114 byte[] msg = InetDiagMessage.InetDiagReqV2(IPPROTO_TCP, local, remote, AF_INET6, in testInetDiagReqV2TcpInet6() 151 byte[] msg = InetDiagMessage.InetDiagReqV2(IPPROTO_TCP, local, remote, AF_INET, in testInetDiagReqV2TcpInetWithExt() 160 msg = InetDiagMessage.InetDiagReqV2(IPPROTO_TCP, local, remote, AF_INET6, in testInetDiagReqV2TcpInetWithExt() 198 byte[] msgExt = InetDiagMessage.InetDiagReqV2(IPPROTO_TCP, null, null, AF_INET6, in testInetDiagReqV2TcpInet6NoIdSpecified() 202 msg = InetDiagMessage.InetDiagReqV2(IPPROTO_TCP, null, remote, AF_INET6, in testInetDiagReqV2TcpInet6NoIdSpecified() 209 msg = InetDiagMessage.InetDiagReqV2(IPPROTO_TCP, local, null, AF_INET6, in testInetDiagReqV2TcpInet6NoIdSpecified() 215 msg = InetDiagMessage.InetDiagReqV2(IPPROTO_TCP, null, null, AF_INET6, in testInetDiagReqV2TcpInet6NoIdSpecified()
|
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/Connectivity/service/src/com/android/server/connectivity/ |
D | TcpKeepaliveController.java | 27 import static android.system.OsConstants.IPPROTO_TCP; 169 Os.setsockoptInt(fd, IPPROTO_TCP, TCP_REPAIR, TCP_REPAIR_ON); in switchToRepairMode() 177 Os.setsockoptInt(fd, IPPROTO_TCP, TCP_REPAIR_QUEUE, TCP_SEND_QUEUE); in switchToRepairMode() 178 tcpDetails.seq = Os.getsockoptInt(fd, IPPROTO_TCP, TCP_QUEUE_SEQ); in switchToRepairMode() 180 Os.setsockoptInt(fd, IPPROTO_TCP, TCP_REPAIR_QUEUE, TCP_RECV_QUEUE); in switchToRepairMode() 181 tcpDetails.ack = Os.getsockoptInt(fd, IPPROTO_TCP, TCP_QUEUE_SEQ); in switchToRepairMode() 183 Os.setsockoptInt(fd, IPPROTO_TCP, TCP_REPAIR_QUEUE, TCP_NO_QUEUE); in switchToRepairMode() 232 Os.setsockoptInt(fd, IPPROTO_TCP, TCP_REPAIR, TCP_REPAIR_OFF); in switchOutOfRepairMode()
|
/packages/modules/adb/ |
D | sysdeps_unix.cpp | 31 if (adb_setsockopt(fd, IPPROTO_TCP, TCP_KEEPIDLE, &interval_sec, sizeof(interval_sec))) { in set_tcp_keepalive() 35 if (adb_setsockopt(fd, IPPROTO_TCP, TCP_KEEPALIVE, &interval_sec, sizeof(interval_sec))) { in set_tcp_keepalive() 42 if (adb_setsockopt(fd, IPPROTO_TCP, TCP_KEEPINTVL, &interval_sec, sizeof(interval_sec))) { in set_tcp_keepalive() 52 if (adb_setsockopt(fd, IPPROTO_TCP, TCP_KEEPCNT, &keepcnt, sizeof(keepcnt))) { in set_tcp_keepalive()
|
/packages/modules/NetworkStack/tests/integration/src/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/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | BpfCoordinatorTest.java | 37 import static android.system.OsConstants.IPPROTO_TCP; 1333 if (proto != IPPROTO_TCP && proto != IPPROTO_UDP) { in makeUpstream4Key() 1342 if (proto != IPPROTO_TCP && proto != IPPROTO_UDP) { in makeDownstream4Key() 1368 return makeDownstream4Key(IPPROTO_TCP); in makeDownstream4Key() 1376 if (proto != IPPROTO_TCP && proto != IPPROTO_UDP) { in makeTestConntrackEvent() 1451 final Tether4Key expectedUpstream4KeyTcp = makeUpstream4Key(IPPROTO_TCP); in testSetDataLimitOnRule4Change() 1452 final Tether4Key expectedDownstream4KeyTcp = makeDownstream4Key(IPPROTO_TCP); in testSetDataLimitOnRule4Change() 1462 mConsumer.accept(makeTestConntrackEvent(IPCTNL_MSG_CT_NEW, IPPROTO_TCP)); in testSetDataLimitOnRule4Change() 1489 mConsumer.accept(makeTestConntrackEvent(IPCTNL_MSG_CT_DELETE, IPPROTO_TCP)); in testSetDataLimitOnRule4Change() 1522 mConsumer.accept(makeTestConntrackEvent(IPCTNL_MSG_CT_NEW, IPPROTO_TCP)); in testAddDevMapRule4() [all …]
|
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/ |
D | ConntrackMonitorTest.java | 25 import static android.system.OsConstants.IPPROTO_TCP; 210 new TupleProto((byte) IPPROTO_TCP, (short) 62449, (short) 443)), in makeTestConntrackEvent() 212 new TupleProto((byte) IPPROTO_TCP, (short) 443, (short) 62449)), in makeTestConntrackEvent()
|
/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()
|
D | resolv_unit_test.cpp | 300 (family == AF_INET6 && socktype == SOCK_STREAM && protocol == IPPROTO_TCP) || in TEST_F() 302 (family == AF_INET && socktype == SOCK_STREAM && protocol == IPPROTO_TCP) || in TEST_F() 304 (family == AF_UNSPEC && socktype == SOCK_STREAM && protocol == IPPROTO_TCP)) { in TEST_F() 1139 EXPECT_EQ(GetNumQueriesForProtocol(dns, IPPROTO_TCP, kHelloExampleCom), 1U); in TEST_F() 1179 EXPECT_EQ(GetNumQueriesForProtocol(dns, IPPROTO_TCP, kHelloExampleCom), 2U); in TEST_F()
|
/packages/modules/DnsResolver/tests/dns_responder/ |
D | dns_responder.cpp | 177 case IPPROTO_TCP: in dnsproto2str() 545 setResponseProbability(response_probability, IPPROTO_TCP); in setResponseProbability() 557 case IPPROTO_TCP: in setResponseProbability() 570 case IPPROTO_TCP: in getResponseProbability() 722 handleQuery(IPPROTO_TCP); in requestHandler() 1108 case IPPROTO_TCP: in handleQuery() 1156 case IPPROTO_TCP: in handleQuery() 1178 const char* method_str = (protocol == IPPROTO_TCP) ? "write()" : "sendto()"; in handleQuery()
|
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/ |
D | PacketReflector.java | 45 private static final byte IPPROTO_TCP = 6; field in PacketReflector 238 case IPPROTO_TCP: in processPacket()
|
D | VpnTest.java | 28 import static android.system.OsConstants.IPPROTO_TCP; 498 int uid = mCM.getConnectionOwnerUid(OsConstants.IPPROTO_TCP, loc, rem); in checkConnectionOwnerUidTcp() 843 int uid = mCM.getConnectionOwnerUid(OsConstants.IPPROTO_TCP, loc, rem); in testGetConnectionOwnerUidSecurity() 1118 mCM.getConnectionOwnerUid(IPPROTO_TCP, src, dst); in testB141603906()
|
/packages/modules/Connectivity/Tethering/bpf_progs/ |
D | offload.c | 144 if (ip6->nexthdr == IPPROTO_TCP) { 414 if (!updatetime && ip->protocol != IPPROTO_TCP) TC_PUNT(NON_TCP); in do_forward4() 418 if (updatetime && (ip->protocol != IPPROTO_TCP) && (ip->protocol != IPPROTO_UDP)) in do_forward4() 423 const bool is_tcp = !updatetime || (ip->protocol == IPPROTO_TCP); in do_forward4()
|
/packages/modules/Connectivity/framework/jni/ |
D | android_net_NetworkUtils.cpp | 218 int rc = getsockopt(fd, IPPROTO_TCP, TCP_REPAIR_WINDOW, &trw, &size); in android_net_utils_getTcpRepairWindow() 229 rc = getsockopt(fd, IPPROTO_TCP, TCP_INFO, &tcpinfo, &tcpinfo_size); in android_net_utils_getTcpRepairWindow()
|
/packages/modules/DnsResolver/ |
D | DnsTlsServer.h | 57 int protocol = IPPROTO_TCP;
|
/packages/modules/NetworkStack/common/netlinkclient/src/android/net/netlink/ |
D | ConntrackMessage.java | 24 import static android.system.OsConstants.IPPROTO_TCP; 378 if (!(protoNum == IPPROTO_TCP || protoNum == IPPROTO_UDP)) return null; in parseTupleProto()
|
D | NetlinkConstants.java | 68 if (protocol == OsConstants.IPPROTO_TCP) { return "IPPROTO_TCP"; } in stringForProtocol()
|
/packages/modules/NetworkStack/src/com/android/networkstack/netlink/ |
D | TcpSocketTracker.java | 34 import static android.system.OsConstants.IPPROTO_TCP; 163 InetDiagReqV2(IPPROTO_TCP, in TcpSocketTracker()
|
/packages/modules/adb/client/pairing/ |
D | pairing_client.cpp | 137 adb_setsockopt(fd.get(), IPPROTO_TCP, TCP_NODELAY, &off, sizeof(off)); in StartConnection()
|
/packages/modules/adb/pairing_connection/tests/ |
D | pairing_client.cpp | 171 setsockopt(fd.get(), IPPROTO_TCP, TCP_NODELAY, &off, sizeof(off)); in StartConnection()
|
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | OffloadController.java | 858 } else if (proto == OsConstants.IPPROTO_TCP) { in protoNameFor() 872 if (proto == OsConstants.IPPROTO_TCP) { in connectionTimeoutUpdateSecondsFor()
|
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/util/ |
D | KeepalivePacketDataUtil.java | 136 buf.put((byte) OsConstants.IPPROTO_TCP); in buildV4Packet()
|
/packages/modules/NetworkStack/src/android/net/apf/ |
D | ApfFilter.java | 26 import static android.system.OsConstants.IPPROTO_TCP; 1387 generateKeepaliveFilters(gen, TcpKeepaliveAckV4.class, IPPROTO_TCP, IPV4_PROTOCOL_OFFSET, in generateV4KeepaliveFilters() 1482 generateKeepaliveFilters(gen, TcpKeepaliveAckV6.class, IPPROTO_TCP, IPV6_NEXT_HEADER_OFFSET, in generateV6KeepaliveFilters()
|