/Linux-v4.19/net/ipv4/netfilter/ |
D | nf_socket_ipv4.c | 55 if (inside_iph->protocol != IPPROTO_TCP && in extract_icmp4_fields() 85 case IPPROTO_TCP: in nf_socket_get_sock_v4() 110 if (iph->protocol == IPPROTO_UDP || iph->protocol == IPPROTO_TCP) { in nf_sk_lookup_slow_v4() 126 doff = iph->protocol == IPPROTO_TCP ? in nf_sk_lookup_slow_v4() 152 dport = (iph->protocol == IPPROTO_TCP) ? in nf_sk_lookup_slow_v4()
|
D | nf_reject_ipv4.c | 27 if (ip_hdr(oldskb)->protocol != IPPROTO_TCP) in nf_reject_ip_tcphdr_get() 40 if (nf_ip_checksum(oldskb, hook, ip_hdrlen(oldskb), IPPROTO_TCP)) in nf_reject_ip_tcphdr_get() 128 niph = nf_reject_iphdr_put(nskb, oldskb, IPPROTO_TCP, in nf_send_reset() 184 if (iph->protocol == IPPROTO_TCP || iph->protocol == IPPROTO_UDP) in nf_send_unreach()
|
D | ipt_ECN.c | 89 ip_hdr(skb)->protocol == IPPROTO_TCP) in ecn_tg() 108 (e->ip.proto != IPPROTO_TCP || (e->ip.invflags & XT_INV_PROTO))) { in ecn_tg_check()
|
/Linux-v4.19/net/ipv6/netfilter/ |
D | nf_socket_ipv6.c | 62 if (inside_nexthdr != IPPROTO_TCP && in extract_icmp6_fields() 90 case IPPROTO_TCP: in nf_socket_get_sock_v6() 118 if (tproto == IPPROTO_UDP || tproto == IPPROTO_TCP) { in nf_sk_lookup_slow_v6() 132 doff = tproto == IPPROTO_TCP ? in nf_sk_lookup_slow_v6()
|
D | nf_reject_ipv6.c | 39 if (proto != IPPROTO_TCP || *otcplen < sizeof(struct tcphdr)) { in nf_reject_ip6_tcphdr_get() 57 if (nf_ip6_checksum(oldskb, hook, tcphoff, IPPROTO_TCP)) { in nf_reject_ip6_tcphdr_get() 126 sizeof(struct tcphdr), IPPROTO_TCP, in nf_reject_ip6_tcphdr_put() 154 fl6.flowi6_proto = IPPROTO_TCP; in nf_send_reset6() 187 ip6h = nf_reject_ip6hdr_put(nskb, oldskb, IPPROTO_TCP, in nf_send_reset6()
|
D | ip6t_SYNPROXY.c | 34 iph->nexthdr = IPPROTO_TCP; in synproxy_build_ip() 57 fl6.flowi6_proto = IPPROTO_TCP; in synproxy_send_tcp() 285 if (nf_ip6_checksum(skb, xt_hooknum(par), par->thoff, IPPROTO_TCP)) in synproxy_tg6() 357 if (thoff < 0 || nexthdr != IPPROTO_TCP) in ipv6_synproxy_hook() 469 e->ipv6.proto != IPPROTO_TCP || in synproxy_tg6_check()
|
/Linux-v4.19/net/netfilter/ipset/ |
D | ip_set_getport.c | 28 case IPPROTO_TCP: { in get_port() 110 case IPPROTO_TCP: in ip_set_get_ip4_port() 170 case IPPROTO_TCP: in ip_set_get_ip_port()
|
/Linux-v4.19/net/ipv6/ |
D | tcpv6_offload.c | 23 skb_gro_checksum_validate(skb, IPPROTO_TCP, in tcp6_gro_receive() 80 return inet6_add_offload(&tcpv6_offload, IPPROTO_TCP); in tcpv6_offload_init()
|
/Linux-v4.19/tools/testing/selftests/net/ |
D | socket.c | 28 { AF_INET, SOCK_STREAM, IPPROTO_TCP, 0, 1 }, 29 { AF_INET, SOCK_DGRAM, IPPROTO_TCP, -EPROTONOSUPPORT, 1 },
|
D | tcp_mmap.c | 175 res = getsockopt(fd, IPPROTO_TCP, TCP_ZEROCOPY_RECEIVE, in child_thread() 383 setsockopt(fdlisten, IPPROTO_TCP, TCP_MAXSEG, in main() 415 setsockopt(fd, IPPROTO_TCP, TCP_MAXSEG, &mss, sizeof(mss)) == -1) { in main()
|
/Linux-v4.19/net/netfilter/ |
D | nf_conntrack_sane.c | 151 IPPROTO_TCP, NULL, &reply->port); in help() 198 nf_ct_helper_init(&sane[2 * i], AF_INET, IPPROTO_TCP, "sane", in nf_conntrack_sane_init() 202 nf_ct_helper_init(&sane[2 * i + 1], AF_INET6, IPPROTO_TCP, "sane", in nf_conntrack_sane_init()
|
D | xt_tcpmss.c | 86 .proto = IPPROTO_TCP, 94 .proto = IPPROTO_TCP,
|
D | xt_TCPOPTSTRIP.c | 122 .proto = IPPROTO_TCP, 132 .proto = IPPROTO_TCP,
|
D | xt_ecn.c | 99 (ip->proto != IPPROTO_TCP || ip->invflags & IPT_INV_PROTO)) { in ecn_mt_check4() 141 (ip->proto != IPPROTO_TCP || ip->invflags & IP6T_INV_PROTO)) { in ecn_mt_check6()
|
D | nf_flow_table_ip.c | 23 if (proto != IPPROTO_TCP) in nf_flow_state_check() 78 case IPPROTO_TCP: in nf_flow_nat_ip_l4proto() 180 if (iph->protocol != IPPROTO_TCP && in nf_flow_tuple_ip() 317 case IPPROTO_TCP: in nf_flow_nat_ipv6_l4proto() 411 if (ip6h->nexthdr != IPPROTO_TCP && in nf_flow_tuple_ipv6()
|
D | xt_tcpudp.c | 170 .proto = IPPROTO_TCP, 179 .proto = IPPROTO_TCP,
|
/Linux-v4.19/include/uapi/linux/ |
D | in.h | 37 IPPROTO_TCP = 6, /* Transmission Control Protocol */ enumerator 38 #define IPPROTO_TCP IPPROTO_TCP macro
|
/Linux-v4.19/tools/include/uapi/linux/ |
D | in.h | 37 IPPROTO_TCP = 6, /* Transmission Control Protocol */ enumerator 38 #define IPPROTO_TCP IPPROTO_TCP macro
|
/Linux-v4.19/include/linux/ |
D | sock_diag.h | 45 case IPPROTO_TCP: in sock_diag_destroy_group() 57 case IPPROTO_TCP: in sock_diag_destroy_group()
|
/Linux-v4.19/net/rds/ |
D | tcp_listen.c | 54 ret = kernel_setsockopt(sock, IPPROTO_TCP, TCP_KEEPCNT, in rds_tcp_keepalive() 59 ret = kernel_setsockopt(sock, IPPROTO_TCP, TCP_KEEPIDLE, in rds_tcp_keepalive() 67 ret = kernel_setsockopt(sock, IPPROTO_TCP, TCP_KEEPINTVL, in rds_tcp_keepalive() 298 IPPROTO_TCP, &sock); in rds_tcp_listen_init()
|
D | tcp_connect.c | 115 SOCK_STREAM, IPPROTO_TCP, &sock); in rds_tcp_conn_path_connect() 119 SOCK_STREAM, IPPROTO_TCP, &sock); in rds_tcp_conn_path_connect()
|
/Linux-v4.19/drivers/net/ethernet/qualcomm/rmnet/ |
D | rmnet_map_data.c | 33 case IPPROTO_TCP: in rmnet_map_get_csum_field() 104 case IPPROTO_TCP: in rmnet_map_ipv4_dl_csum_trailer() 172 case IPPROTO_TCP: in rmnet_map_ipv6_dl_csum_trailer() 198 if (ip4h->protocol == IPPROTO_TCP || ip4h->protocol == IPPROTO_UDP) { in rmnet_map_complement_ipv4_txporthdr_csum_field() 240 if (ip6h->nexthdr == IPPROTO_TCP || ip6h->nexthdr == IPPROTO_UDP) { in rmnet_map_complement_ipv6_txporthdr_csum_field()
|
/Linux-v4.19/samples/bpf/ |
D | parse_varlen.c | 71 if (iph->protocol == IPPROTO_TCP) in parse_ipv4() 105 if (nexthdr == IPPROTO_TCP) in parse_ipv6()
|
/Linux-v4.19/net/ipv4/ |
D | netlink.c | 14 case IPPROTO_TCP: in rtm_getroute_parse_ip_proto()
|
/Linux-v4.19/include/linux/netfilter/ipset/ |
D | ip_set_getport.h | 25 case IPPROTO_TCP: in ip_set_proto_with_ports()
|