| /freebsd-13.1/sbin/ipf/libipf/ |
| H A D | ipft_tx.c | 215 ip->ip_p = IPPROTO_TCP; in parseline() 236 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) { in parseline() 246 if (ip->ip_p == IPPROTO_TCP) { in parseline() 256 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) { in parseline() 269 if (ip->ip_p == IPPROTO_TCP) { in parseline() 323 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) in parseline() 361 ip6->ip6_nxt = IPPROTO_TCP; in parseipv6() 383 case IPPROTO_TCP : in parseipv6() 396 if (ip6->ip6_nxt == IPPROTO_TCP || ip6->ip6_nxt == IPPROTO_UDP) { in parseipv6() 406 if (ip6->ip6_nxt == IPPROTO_TCP) { in parseipv6() [all …]
|
| H A D | printpacket.c | 79 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) in printpacket() 84 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) in printpacket() 86 if ((ip->ip_p == IPPROTO_TCP) && (tcp->th_flags != 0)) { in printpacket()
|
| H A D | printstate.c | 31 if (sp->is_p == IPPROTO_UDP || sp->is_p == IPPROTO_TCP) { in printstate() 39 if (sp->is_p == IPPROTO_UDP || sp->is_p == IPPROTO_TCP) { in printstate() 46 if (sp->is_p == IPPROTO_TCP) { in printstate() 57 if (sp->is_p == IPPROTO_TCP) { in printstate()
|
| H A D | printpacket6.c | 46 if (p == IPPROTO_TCP || p == IPPROTO_UDP) in printpacket6() 55 if (p == IPPROTO_TCP || p == IPPROTO_UDP) in printpacket6()
|
| /freebsd-13.1/sbin/ipf/ipsend/ |
| H A D | ipsend.c | 243 ip->ip_p = IPPROTO_TCP; in main() 291 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) in main() 299 if (ip->ip_p == IPPROTO_TCP) in main() 361 if (ip->ip_p == IPPROTO_TCP) { in main() 368 if (ip->ip_p == IPPROTO_TCP) in main() 398 if (ip->ip_p == IPPROTO_TCP && tcp->th_flags) in main() 407 if (ip->ip_p == IPPROTO_TCP && tcp->th_dport) in main()
|
| H A D | resend.c | 50 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) in dumppacket() 53 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) in dumppacket() 55 if (ip->ip_p == IPPROTO_TCP) { in dumppacket()
|
| /freebsd-13.1/crypto/heimdal/lib/roken/ |
| H A D | getaddrinfo_hostspec.c | 58 { "http://", SOCK_STREAM, IPPROTO_TCP, 80 }, in roken_getaddrinfo_hostspec2() 59 { "http/", SOCK_STREAM, IPPROTO_TCP, 80 }, in roken_getaddrinfo_hostspec2() 60 { "tcp/", SOCK_STREAM, IPPROTO_TCP, 0 }, in roken_getaddrinfo_hostspec2()
|
| /freebsd-13.1/contrib/llvm-project/lldb/source/Host/common/ |
| H A D | TCPSocket.cpp | 146 m_socket = Socket::CreateSocket(domain, kType, IPPROTO_TCP, in CreateSocket() 164 host_str.c_str(), nullptr, AF_UNSPEC, SOCK_STREAM, IPPROTO_TCP); in Connect() 202 host_str.c_str(), nullptr, AF_UNSPEC, SOCK_STREAM, IPPROTO_TCP); in Listen() 204 int fd = Socket::CreateSocket(address.GetFamily(), kType, IPPROTO_TCP, in Listen() 315 return SetOption(IPPROTO_TCP, TCP_NODELAY, 1); in SetOptionNoDelay()
|
| /freebsd-13.1/contrib/tcpdump/ |
| H A D | ipproto.h | 56 #ifndef IPPROTO_TCP 57 #define IPPROTO_TCP 6 /* tcp */ macro
|
| /freebsd-13.1/sys/netinet/ |
| H A D | in_rss.c | 129 if ((proto == IPPROTO_TCP) && in rss_proto_software_hash_v4() 175 if ((proto == IPPROTO_TCP) && in xps_proto_software_hash_v4() 290 case IPPROTO_TCP: in rss_mbuf_software_hash_v4() 322 (proto == IPPROTO_TCP) && in rss_mbuf_software_hash_v4()
|
| /freebsd-13.1/contrib/ntp/sntp/libevent/test/ |
| H A D | regress_dns.c | 1239 hints.ai_protocol = IPPROTO_TCP; in test_bufferevent_connect_hostname() 1372 hints.ai_protocol = IPPROTO_TCP; in test_getaddrinfo_async() 1392 a = ai_find_by_protocol(local_outcome.ai, IPPROTO_TCP); in test_getaddrinfo_async() 1394 test_ai_eq(a, "5.6.7.8", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async() 1436 test_ai_eq(a, "127.0.0.1:2", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async() 1440 test_ai_eq(a, "[::1]:2", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async() 1457 test_ai_eq(a, "127.0.0.1:80", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async() 1461 test_ai_eq(a, "[::1]:80", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async() 1476 test_ai_eq(a, "[::1]:9999", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async() 1597 test_ai_eq(a, "80.80.32.32:8000", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async() [all …]
|
| H A D | regress_util.c | 939 test_ai_eq(ai, "1.2.3.4:8080", SOCK_STREAM, IPPROTO_TCP); in test_evutil_getaddrinfo() 957 hints.ai_protocol = IPPROTO_TCP; in test_evutil_getaddrinfo() 981 test_ai_eq(ai, "[::1]:9997", SOCK_STREAM, IPPROTO_TCP); in test_evutil_getaddrinfo() 991 test_ai_eq(ai, "[::]:9996", SOCK_STREAM, IPPROTO_TCP); in test_evutil_getaddrinfo() 1002 test_ai_eq(a, "[::]:9996", SOCK_STREAM, IPPROTO_TCP); in test_evutil_getaddrinfo() 1005 test_ai_eq(a, "0.0.0.0:9996", SOCK_STREAM, IPPROTO_TCP); in test_evutil_getaddrinfo() 1016 a = ai_find_by_protocol(ai, IPPROTO_TCP); in test_evutil_getaddrinfo() 1018 test_ai_eq(a, "1.2.3.4", SOCK_STREAM, IPPROTO_TCP); in test_evutil_getaddrinfo() 1050 test_ai_eq(ai, "1.2.3.4:80", SOCK_STREAM, IPPROTO_TCP); in test_evutil_getaddrinfo() 1075 hints.ai_protocol = IPPROTO_TCP; in test_evutil_getaddrinfo_live() [all …]
|
| /freebsd-13.1/crypto/openssl/crypto/bio/ |
| H A D | b_sock.c | 15 # define SOCKET_PROTOCOL IPPROTO_TCP 280 # if defined(TCP_NODELAY) && (defined(IPPROTO_TCP) || defined(SOL_TCP)) in BIO_set_tcp_ndelay() 286 # ifdef IPPROTO_TCP in BIO_set_tcp_ndelay() 287 opt = IPPROTO_TCP; in BIO_set_tcp_ndelay()
|
| /freebsd-13.1/sys/netinet6/ |
| H A D | in6_rss.c | 130 if ((proto == IPPROTO_TCP) && in rss_proto_software_hash_v6() 177 if ((proto == IPPROTO_TCP) && in xps_proto_software_hash_v6() 319 case IPPROTO_TCP: in rss_mbuf_software_hash_v6() 347 (proto == IPPROTO_TCP)) { in rss_mbuf_software_hash_v6()
|
| /freebsd-13.1/crypto/openssl/include/internal/ |
| H A D | ktls.h | 71 return setsockopt(fd, IPPROTO_TCP, TCP_TXTLS_ENABLE, in ktls_start() 74 return setsockopt(fd, IPPROTO_TCP, TCP_RXTLS_ENABLE, tls_en, in ktls_start() 100 cmsg->cmsg_level = IPPROTO_TCP; in ktls_send_ctrl_message() 170 if (cmsg->cmsg_level != IPPROTO_TCP || cmsg->cmsg_type != TLS_GET_RECORD in ktls_read_record()
|
| /freebsd-13.1/contrib/libevent/test/ |
| H A D | regress_dns.c | 1268 hints.ai_protocol = IPPROTO_TCP; in test_bufferevent_connect_hostname() 1410 hints.ai_protocol = IPPROTO_TCP; in test_getaddrinfo_async() 1430 a = ai_find_by_protocol(local_outcome.ai, IPPROTO_TCP); in test_getaddrinfo_async() 1432 test_ai_eq(a, "5.6.7.8", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async() 1474 test_ai_eq(a, "127.0.0.1:2", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async() 1478 test_ai_eq(a, "[::1]:2", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async() 1495 test_ai_eq(a, "127.0.0.1:80", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async() 1499 test_ai_eq(a, "[::1]:80", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async() 1514 test_ai_eq(a, "[::1]:9999", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async() 1635 test_ai_eq(a, "80.80.32.32:8000", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async() [all …]
|
| H A D | regress_util.c | 939 test_ai_eq(ai, "1.2.3.4:8080", SOCK_STREAM, IPPROTO_TCP); in test_evutil_getaddrinfo() 957 hints.ai_protocol = IPPROTO_TCP; in test_evutil_getaddrinfo() 981 test_ai_eq(ai, "[::1]:9997", SOCK_STREAM, IPPROTO_TCP); in test_evutil_getaddrinfo() 991 test_ai_eq(ai, "[::]:9996", SOCK_STREAM, IPPROTO_TCP); in test_evutil_getaddrinfo() 1002 test_ai_eq(a, "[::]:9996", SOCK_STREAM, IPPROTO_TCP); in test_evutil_getaddrinfo() 1005 test_ai_eq(a, "0.0.0.0:9996", SOCK_STREAM, IPPROTO_TCP); in test_evutil_getaddrinfo() 1016 a = ai_find_by_protocol(ai, IPPROTO_TCP); in test_evutil_getaddrinfo() 1018 test_ai_eq(a, "1.2.3.4", SOCK_STREAM, IPPROTO_TCP); in test_evutil_getaddrinfo() 1050 test_ai_eq(ai, "1.2.3.4:80", SOCK_STREAM, IPPROTO_TCP); in test_evutil_getaddrinfo() 1075 hints.ai_protocol = IPPROTO_TCP; in test_evutil_getaddrinfo_live() [all …]
|
| /freebsd-13.1/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/ip/ |
| H A D | tst.ipv4localtcp.ksh | 96 args[4]->ipv4_protocol == IPPROTO_TCP/ 109 args[4]->ipv4_protocol == IPPROTO_TCP/
|
| H A D | tst.ipv4remotetcp.ksh | 92 args[4]->ipv4_protocol == IPPROTO_TCP/ 105 args[4]->ipv4_protocol == IPPROTO_TCP/
|
| H A D | tst.remotetcpstate.ksh | 98 args[4]->ipv4_protocol == IPPROTO_TCP/ 112 args[4]->ipv4_protocol == IPPROTO_TCP/
|
| /freebsd-13.1/sys/netipsec/ |
| H A D | xform_tcp.c | 143 ipp.ippseudo_p = IPPROTO_TCP; in ip_pseudo_compute() 166 ip6p.nxt = htonl(IPPROTO_TCP); in ip6_pseudo_compute() 264 saidx.proto = IPPROTO_TCP; in tcp_ipsec_input() 309 saidx.proto = IPPROTO_TCP; in tcp_ipsec_output()
|
| /freebsd-13.1/sbin/mount_nfs/ |
| H A D | mount_nfs.c | 113 static int nfsproto = IPPROTO_TCP; 261 nfsproto = IPPROTO_TCP; in main() 278 nfsproto = IPPROTO_TCP; in main() 292 nfsproto = IPPROTO_TCP; in main() 303 nfsproto = IPPROTO_TCP; in main() 360 nfsproto = IPPROTO_TCP; in main() 400 nfsproto = IPPROTO_TCP; in main() 629 if (nfsproto == IPPROTO_TCP) in getnfsargs() 761 if (nfsproto == IPPROTO_TCP) in nfs_tryproto()
|
| /freebsd-13.1/contrib/apr/network_io/unix/ |
| H A D | sockopt.c | 213 int optlevel = IPPROTO_TCP; in apr_socket_opt_set() 229 int optlevel = IPPROTO_TCP; in apr_socket_opt_set() 265 int optlevel = IPPROTO_TCP; in apr_socket_opt_set() 291 if (setsockopt(sock->socketdes, IPPROTO_TCP, APR_TCP_NOPUSH_FLAG, in apr_socket_opt_set()
|
| /freebsd-13.1/usr.bin/systat/ |
| H A D | tcp.c | 277 name[2] = IPPROTO_TCP; in inittcp() 305 name[2] = IPPROTO_TCP; in resettcp() 324 name[2] = IPPROTO_TCP; in fetchtcp()
|
| /freebsd-13.1/sys/netinet/libalias/ |
| H A D | alias.c | 355 else if (ip->ip_p == IPPROTO_TCP) in IcmpAliasIn2() 358 IPPROTO_TCP, 0); in IcmpAliasIn2() 368 if (ip->ip_p == IPPROTO_UDP || ip->ip_p == IPPROTO_TCP) { in IcmpAliasIn2() 544 else if (ip->ip_p == IPPROTO_TCP) in IcmpAliasOut2() 547 IPPROTO_TCP, 0); in IcmpAliasOut2() 955 IPPROTO_TCP, in TcpAliasIn() 1116 IPPROTO_TCP, create); in TcpAliasOut() 1367 case IPPROTO_TCP: in LibAliasInLocked() 1521 case IPPROTO_TCP: in LibAliasOutLocked() 1591 else if (pip->ip_p == IPPROTO_TCP) in LibAliasUnaliasOut() [all …]
|