/freebsd/sbin/ipf/libipf/ |
H A D | ipft_tx.c | 210 ip->ip_p = IPPROTO_TCP; in parseline() 231 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) { in parseline() 241 if (ip->ip_p == IPPROTO_TCP) { in parseline() 251 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) { in parseline() 264 if (ip->ip_p == IPPROTO_TCP) { in parseline() 318 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) in parseline() 356 ip6->ip6_nxt = IPPROTO_TCP; in parseipv6() 378 case IPPROTO_TCP : in parseipv6() 391 if (ip6->ip6_nxt == IPPROTO_TCP || ip6->ip6_nxt == IPPROTO_UDP) { in parseipv6() 401 if (ip6->ip6_nxt == IPPROTO_TCP) { in parseipv6() [all …]
|
H A D | printpacket.c | 78 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) in printpacket() 83 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) in printpacket() 85 if ((ip->ip_p == IPPROTO_TCP) && (tcp->th_flags != 0)) { in printpacket()
|
H A D | printstate.c | 30 if (sp->is_p == IPPROTO_UDP || sp->is_p == IPPROTO_TCP) { in printstate() 38 if (sp->is_p == IPPROTO_UDP || sp->is_p == IPPROTO_TCP) { in printstate() 45 if (sp->is_p == IPPROTO_TCP) { in printstate() 56 if (sp->is_p == IPPROTO_TCP) { in printstate()
|
H A D | printpacket6.c | 45 if (p == IPPROTO_TCP || p == IPPROTO_UDP) in printpacket6() 54 if (p == IPPROTO_TCP || p == IPPROTO_UDP) in printpacket6()
|
/freebsd/sbin/ipf/ipsend/ |
H A D | ipsend.c | 238 ip->ip_p = IPPROTO_TCP; in main() 286 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) in main() 294 if (ip->ip_p == IPPROTO_TCP) in main() 356 if (ip->ip_p == IPPROTO_TCP) { in main() 363 if (ip->ip_p == IPPROTO_TCP) in main() 393 if (ip->ip_p == IPPROTO_TCP && tcp->th_flags) in main() 402 if (ip->ip_p == IPPROTO_TCP && tcp->th_dport) in main()
|
H A D | resend.c | 45 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) in dumppacket() 48 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) in dumppacket() 50 if (ip->ip_p == IPPROTO_TCP) { in dumppacket()
|
/freebsd/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/contrib/llvm-project/lldb/source/Host/common/ |
H A D | TCPSocket.cpp | 145 m_socket = Socket::CreateSocket(domain, kType, IPPROTO_TCP, in CreateSocket() 162 AF_UNSPEC, SOCK_STREAM, IPPROTO_TCP); in Connect() 202 host_port->hostname.c_str(), nullptr, AF_UNSPEC, SOCK_STREAM, IPPROTO_TCP); in Listen() 204 int fd = Socket::CreateSocket(address.GetFamily(), kType, IPPROTO_TCP, in Listen() 321 return SetOption(IPPROTO_TCP, TCP_NODELAY, 1); in SetOptionNoDelay()
|
/freebsd/sys/netinet/ |
H A D | in_rss.c | 121 if ((proto == IPPROTO_TCP) && in rss_proto_software_hash_v4() 167 if ((proto == IPPROTO_TCP) && in xps_proto_software_hash_v4() 280 case IPPROTO_TCP: in rss_mbuf_software_hash_v4() 312 (proto == IPPROTO_TCP) && in rss_mbuf_software_hash_v4()
|
/freebsd/contrib/tcpdump/ |
H A D | ipproto.h | 56 #ifndef IPPROTO_TCP 57 #define IPPROTO_TCP 6 /* tcp */ macro
|
/freebsd/sys/netinet6/ |
H A D | in6_rss.c | 122 if ((proto == IPPROTO_TCP) && in rss_proto_software_hash_v6() 169 if ((proto == IPPROTO_TCP) && in xps_proto_software_hash_v6() 311 case IPPROTO_TCP: in rss_mbuf_software_hash_v6() 339 (proto == IPPROTO_TCP)) { in rss_mbuf_software_hash_v6()
|
/freebsd/usr.sbin/ppp/ |
H A D | tcpmss.c | 174 if (pip->ip_p == IPPROTO_TCP && (ntohs(pip->ip_off) & IP_OFFMASK) == 0 && in tcpmss_Check() 194 case IPPROTO_TCP: in tcpmss_Check() 200 if (pfrag->ip6f_nxt == IPPROTO_TCP && in tcpmss_Check()
|
/freebsd/contrib/ntp/sntp/libevent/test/ |
H A D | regress_util.c | 1012 test_ai_eq(ai, "1.2.3.4:8080", SOCK_STREAM, IPPROTO_TCP); in test_evutil_getaddrinfo() 1030 hints.ai_protocol = IPPROTO_TCP; in test_evutil_getaddrinfo() 1036 test_ai_eq(ai, "0.0.0.0:9999", SOCK_STREAM, IPPROTO_TCP); in test_evutil_getaddrinfo() 1043 test_ai_eq(ai, "127.0.0.1:9998", SOCK_STREAM, IPPROTO_TCP); in test_evutil_getaddrinfo() 1054 test_ai_eq(ai, "[::1]:9997", SOCK_STREAM, IPPROTO_TCP); in test_evutil_getaddrinfo() 1064 test_ai_eq(ai, "[::]:9996", SOCK_STREAM, IPPROTO_TCP); in test_evutil_getaddrinfo() 1075 test_ai_eq(a, "[::]:9996", SOCK_STREAM, IPPROTO_TCP); in test_evutil_getaddrinfo() 1078 test_ai_eq(a, "0.0.0.0:9996", SOCK_STREAM, IPPROTO_TCP); in test_evutil_getaddrinfo() 1089 a = ai_find_by_protocol(ai, IPPROTO_TCP); in test_evutil_getaddrinfo() 1091 test_ai_eq(a, "1.2.3.4", SOCK_STREAM, IPPROTO_TCP); in test_evutil_getaddrinfo() [all …]
|
H A D | regress_dns.c | 1333 hints.ai_protocol = IPPROTO_TCP; in test_bufferevent_connect_hostname() 1465 test_ai_eq(local_outcome.ai, "1.2.3.4:80", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async() 1487 hints.ai_protocol = IPPROTO_TCP; in test_getaddrinfo_async() 1494 test_ai_eq(local_outcome.ai, "[f::f]:8008", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async() 1507 a = ai_find_by_protocol(local_outcome.ai, IPPROTO_TCP); in test_getaddrinfo_async() 1509 test_ai_eq(a, "5.6.7.8", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async() 1551 test_ai_eq(a, "127.0.0.1:2", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async() 1555 test_ai_eq(a, "[::1]:2", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async() 1572 test_ai_eq(a, "127.0.0.1:80", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async() 1576 test_ai_eq(a, "[::1]:80", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async() [all …]
|
/freebsd/contrib/libevent/test/ |
H A D | regress_util.c | 1012 test_ai_eq(ai, "1.2.3.4:8080", SOCK_STREAM, IPPROTO_TCP); in test_evutil_getaddrinfo() 1030 hints.ai_protocol = IPPROTO_TCP; in test_evutil_getaddrinfo() 1036 test_ai_eq(ai, "0.0.0.0:9999", SOCK_STREAM, IPPROTO_TCP); in test_evutil_getaddrinfo() 1043 test_ai_eq(ai, "127.0.0.1:9998", SOCK_STREAM, IPPROTO_TCP); in test_evutil_getaddrinfo() 1054 test_ai_eq(ai, "[::1]:9997", SOCK_STREAM, IPPROTO_TCP); in test_evutil_getaddrinfo() 1064 test_ai_eq(ai, "[::]:9996", SOCK_STREAM, IPPROTO_TCP); in test_evutil_getaddrinfo() 1075 test_ai_eq(a, "[::]:9996", SOCK_STREAM, IPPROTO_TCP); in test_evutil_getaddrinfo() 1078 test_ai_eq(a, "0.0.0.0:9996", SOCK_STREAM, IPPROTO_TCP); in test_evutil_getaddrinfo() 1089 a = ai_find_by_protocol(ai, IPPROTO_TCP); in test_evutil_getaddrinfo() 1091 test_ai_eq(a, "1.2.3.4", SOCK_STREAM, IPPROTO_TCP); in test_evutil_getaddrinfo() [all …]
|
H A D | regress_dns.c | 1333 hints.ai_protocol = IPPROTO_TCP; in test_bufferevent_connect_hostname() 1465 test_ai_eq(local_outcome.ai, "1.2.3.4:80", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async() 1487 hints.ai_protocol = IPPROTO_TCP; in test_getaddrinfo_async() 1494 test_ai_eq(local_outcome.ai, "[f::f]:8008", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async() 1507 a = ai_find_by_protocol(local_outcome.ai, IPPROTO_TCP); in test_getaddrinfo_async() 1509 test_ai_eq(a, "5.6.7.8", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async() 1551 test_ai_eq(a, "127.0.0.1:2", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async() 1555 test_ai_eq(a, "[::1]:2", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async() 1572 test_ai_eq(a, "127.0.0.1:80", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async() 1576 test_ai_eq(a, "[::1]:80", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async() [all …]
|
/freebsd/crypto/openssl/include/internal/ |
H A D | ktls.h | 73 return setsockopt(fd, IPPROTO_TCP, TCP_TXTLS_ENABLE, in ktls_start() 76 return setsockopt(fd, IPPROTO_TCP, TCP_RXTLS_ENABLE, tls_en, in ktls_start() 102 cmsg->cmsg_level = IPPROTO_TCP; in ktls_send_ctrl_message() 172 if (cmsg->cmsg_level != IPPROTO_TCP || cmsg->cmsg_type != TLS_GET_RECORD in ktls_read_record()
|
/freebsd/crypto/openssl/crypto/bio/ |
H A D | bio_sock.c | 14 # define SOCKET_PROTOCOL IPPROTO_TCP 296 # if defined(TCP_NODELAY) && (defined(IPPROTO_TCP) || defined(SOL_TCP)) in BIO_set_tcp_ndelay() 302 # ifdef IPPROTO_TCP in BIO_set_tcp_ndelay() 303 opt = IPPROTO_TCP; in BIO_set_tcp_ndelay()
|
/freebsd/sys/netipsec/ |
H A D | xform_tcp.c | 143 ipp.ippseudo_p = IPPROTO_TCP; in ip_pseudo_compute() 176 ip6p.nxt = htonl(IPPROTO_TCP); in ip6_pseudo_compute() 274 saidx.proto = IPPROTO_TCP; in tcp_ipsec_input() 319 saidx.proto = IPPROTO_TCP; in tcp_ipsec_output()
|
/freebsd/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/sbin/mount_nfs/ |
H A D | mount_nfs.c | 100 static int nfsproto = IPPROTO_TCP; 251 nfsproto = IPPROTO_TCP; in main() 268 nfsproto = IPPROTO_TCP; in main() 282 nfsproto = IPPROTO_TCP; in main() 293 nfsproto = IPPROTO_TCP; in main() 350 nfsproto = IPPROTO_TCP; in main() 395 nfsproto = IPPROTO_TCP; in main() 633 if (nfsproto == IPPROTO_TCP) in getnfsargs() 765 if (nfsproto == IPPROTO_TCP) in nfs_tryproto()
|
/freebsd/sys/netinet/libalias/ |
H A D | alias.c | 353 else if (ip->ip_p == IPPROTO_TCP) in IcmpAliasIn2() 356 IPPROTO_TCP, 0); in IcmpAliasIn2() 366 if (ip->ip_p == IPPROTO_UDP || ip->ip_p == IPPROTO_TCP) { in IcmpAliasIn2() 542 else if (ip->ip_p == IPPROTO_TCP) in IcmpAliasOut2() 545 IPPROTO_TCP, 0); in IcmpAliasOut2() 555 if (ip->ip_p == IPPROTO_UDP || ip->ip_p == IPPROTO_TCP) { in IcmpAliasOut2() 952 IPPROTO_TCP, in TcpAliasIn() 1113 IPPROTO_TCP, create); in TcpAliasOut() 1364 case IPPROTO_TCP: in LibAliasInLocked() 1518 case IPPROTO_TCP: in LibAliasOutLocked() [all …]
|
/freebsd/tests/sys/kern/ |
H A D | ktls_test.c | 79 if (getsockopt(s, IPPROTO_TCP, sockopt, &mode, &len) == -1) in check_tls_mode() 91 if (getsockopt(s, IPPROTO_TCP, sockopt, &mode, &len) == -1) in check_tls_mode() 230 hints.ai_protocol = IPPROTO_TCP; in echo_socket() 1197 ATF_REQUIRE(setsockopt(sockets[1], IPPROTO_TCP, TCP_TXTLS_ENABLE, en, in test_ktls_transmit_app_data() 1311 cmsg->cmsg_level = IPPROTO_TCP; in ktls_send_control_message() 1345 ATF_REQUIRE(setsockopt(sockets[1], IPPROTO_TCP, TCP_TXTLS_ENABLE, en, in test_ktls_transmit_control() 1401 ATF_REQUIRE(setsockopt(sockets[1], IPPROTO_TCP, TCP_TXTLS_ENABLE, en, in test_ktls_transmit_empty_fragment() 1476 ATF_REQUIRE_INTEQ(IPPROTO_TCP, cmsg->cmsg_level); in ktls_receive_tls_record() 1513 ATF_REQUIRE(setsockopt(sockets[0], IPPROTO_TCP, TCP_RXTLS_ENABLE, en, in test_ktls_receive_app_data() 1631 ATF_REQUIRE(setsockopt(sockets[0], IPPROTO_TCP, TCP_RXTLS_ENABL in test_ktls_receive_corrupted_record() [all...] |