| /freebsd-12.1/contrib/ipfilter/lib/ |
| H A D | ipft_tx.c | 222 ip->ip_p = IPPROTO_TCP; 243 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) { 253 if (ip->ip_p == IPPROTO_TCP) { 263 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) { 276 if (ip->ip_p == IPPROTO_TCP) { 330 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) 371 ip6->ip6_nxt = IPPROTO_TCP; 393 case IPPROTO_TCP : 406 if (ip6->ip6_nxt == IPPROTO_TCP || ip6->ip6_nxt == IPPROTO_UDP) { 416 if (ip6->ip6_nxt == IPPROTO_TCP) { [all …]
|
| H A D | printpacket.c | 81 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) 86 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) 88 if ((ip->ip_p == IPPROTO_TCP) && (tcp->th_flags != 0)) {
|
| 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 | 48 if (p == IPPROTO_TCP || p == IPPROTO_UDP) 57 if (p == IPPROTO_TCP || p == IPPROTO_UDP)
|
| /freebsd-12.1/contrib/ipfilter/ipsend/ |
| H A D | ipsend.c | 256 ip->ip_p = IPPROTO_TCP; 304 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) 312 if (ip->ip_p == IPPROTO_TCP) 374 if (ip->ip_p == IPPROTO_TCP) { 381 if (ip->ip_p == IPPROTO_TCP) 411 if (ip->ip_p == IPPROTO_TCP && tcp->th_flags) 420 if (ip->ip_p == IPPROTO_TCP && tcp->th_dport)
|
| H A D | resend.c | 50 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) 53 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) 55 if (ip->ip_p == IPPROTO_TCP) {
|
| /freebsd-12.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-12.1/contrib/llvm/tools/lldb/source/Host/common/ |
| H A D | TCPSocket.cpp | 127 m_socket = Socket::CreateSocket(domain, kType, IPPROTO_TCP, in CreateSocket() 146 host_str.c_str(), NULL, AF_UNSPEC, SOCK_STREAM, IPPROTO_TCP); in Connect() 185 host_str.c_str(), NULL, AF_UNSPEC, SOCK_STREAM, IPPROTO_TCP); in Listen() 187 int fd = Socket::CreateSocket(address.GetFamily(), kType, IPPROTO_TCP, in Listen() 297 return SetOption(IPPROTO_TCP, TCP_NODELAY, 1); in SetOptionNoDelay()
|
| /freebsd-12.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-12.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-12.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-12.1/contrib/tcpdump/ |
| H A D | ipproto.h | 56 #ifndef IPPROTO_TCP 57 #define IPPROTO_TCP 6 /* tcp */ macro
|
| /freebsd-12.1/sbin/mount_nfs/ |
| H A D | mount_nfs.c | 109 static int nfsproto = IPPROTO_TCP; 254 nfsproto = IPPROTO_TCP; in main() 271 nfsproto = IPPROTO_TCP; in main() 285 nfsproto = IPPROTO_TCP; in main() 296 nfsproto = IPPROTO_TCP; in main() 353 nfsproto = IPPROTO_TCP; in main() 393 nfsproto = IPPROTO_TCP; in main() 561 if (nfsproto == IPPROTO_TCP) in getnfsargs() 680 if (nfsproto == IPPROTO_TCP) in nfs_tryproto()
|
| /freebsd-12.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() 304 saidx.proto = IPPROTO_TCP; in tcp_ipsec_output()
|
| /freebsd-12.1/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/ip/ |
| H A D | tst.ipv4remotetcp.ksh | 92 args[4]->ipv4_protocol == IPPROTO_TCP/ 105 args[4]->ipv4_protocol == IPPROTO_TCP/
|
| H A D | tst.ipv4localtcp.ksh | 96 args[4]->ipv4_protocol == IPPROTO_TCP/ 109 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-12.1/sys/netinet/ |
| H A D | in_rss.c | 129 if ((proto == IPPROTO_TCP) && in rss_proto_software_hash_v4() 248 case IPPROTO_TCP: in rss_mbuf_software_hash_v4() 280 (proto == IPPROTO_TCP) && in rss_mbuf_software_hash_v4()
|
| /freebsd-12.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-12.1/sys/netinet6/ |
| H A D | in6_rss.c | 130 if ((proto == IPPROTO_TCP) && in rss_proto_software_hash_v6() 275 case IPPROTO_TCP: in rss_mbuf_software_hash_v6() 303 (proto == IPPROTO_TCP)) { in rss_mbuf_software_hash_v6()
|
| /freebsd-12.1/sys/netpfil/ipfw/ |
| H A D | ip_fw2.c | 664 h->ip_p = IPPROTO_TCP; in ipfw_send_pkt() 681 h6->ip6_nxt = IPPROTO_TCP; in ipfw_send_pkt() 1132 if (id->proto == IPPROTO_TCP) { in check_uidgid() 1494 case IPPROTO_TCP: in ipfw_chk() 1679 case IPPROTO_TCP: in ipfw_chk() 1720 if (offset == 1 && proto == IPPROTO_TCP) { in ipfw_chk() 1848 if (proto == IPPROTO_TCP || in ipfw_chk() 1989 if (proto != IPPROTO_TCP && in ipfw_chk() 2152 proto == IPPROTO_TCP || in ipfw_chk() 2319 if (proto == IPPROTO_TCP && in ipfw_chk() [all …]
|
| /freebsd-12.1/sys/netinet/libalias/ |
| H A D | alias.c | 365 else if (ip->ip_p == IPPROTO_TCP) in IcmpAliasIn2() 368 IPPROTO_TCP, 0); in IcmpAliasIn2() 378 if (ip->ip_p == IPPROTO_UDP || ip->ip_p == IPPROTO_TCP) { in IcmpAliasIn2() 555 else if (ip->ip_p == IPPROTO_TCP) in IcmpAliasOut2() 558 IPPROTO_TCP, 0); in IcmpAliasOut2() 957 IPPROTO_TCP, in TcpAliasIn() 1117 IPPROTO_TCP, create); in TcpAliasOut() 1376 case IPPROTO_TCP: in LibAliasInLocked() 1526 case IPPROTO_TCP: in LibAliasOutLocked() 1597 else if (pip->ip_p == IPPROTO_TCP) in LibAliasUnaliasOut() [all …]
|
| /freebsd-12.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()
|