Home
last modified time | relevance | path

Searched refs:IPPROTO_TCP (Results 1 – 25 of 266) sorted by relevance

1234567891011

/Linux-v4.19/net/ipv4/netfilter/
Dnf_socket_ipv4.c55 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()
Dnf_reject_ipv4.c27 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()
Dipt_ECN.c89 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/
Dnf_socket_ipv6.c62 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()
Dnf_reject_ipv6.c39 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()
Dip6t_SYNPROXY.c34 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/
Dip_set_getport.c28 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/
Dtcpv6_offload.c23 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/
Dsocket.c28 { AF_INET, SOCK_STREAM, IPPROTO_TCP, 0, 1 },
29 { AF_INET, SOCK_DGRAM, IPPROTO_TCP, -EPROTONOSUPPORT, 1 },
Dtcp_mmap.c175 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/
Dnf_conntrack_sane.c151 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()
Dxt_tcpmss.c86 .proto = IPPROTO_TCP,
94 .proto = IPPROTO_TCP,
Dxt_TCPOPTSTRIP.c122 .proto = IPPROTO_TCP,
132 .proto = IPPROTO_TCP,
Dxt_ecn.c99 (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()
Dnf_flow_table_ip.c23 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()
Dxt_tcpudp.c170 .proto = IPPROTO_TCP,
179 .proto = IPPROTO_TCP,
/Linux-v4.19/include/uapi/linux/
Din.h37 IPPROTO_TCP = 6, /* Transmission Control Protocol */ enumerator
38 #define IPPROTO_TCP IPPROTO_TCP macro
/Linux-v4.19/tools/include/uapi/linux/
Din.h37 IPPROTO_TCP = 6, /* Transmission Control Protocol */ enumerator
38 #define IPPROTO_TCP IPPROTO_TCP macro
/Linux-v4.19/include/linux/
Dsock_diag.h45 case IPPROTO_TCP: in sock_diag_destroy_group()
57 case IPPROTO_TCP: in sock_diag_destroy_group()
/Linux-v4.19/net/rds/
Dtcp_listen.c54 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()
Dtcp_connect.c115 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/
Drmnet_map_data.c33 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/
Dparse_varlen.c71 if (iph->protocol == IPPROTO_TCP) in parse_ipv4()
105 if (nexthdr == IPPROTO_TCP) in parse_ipv6()
/Linux-v4.19/net/ipv4/
Dnetlink.c14 case IPPROTO_TCP: in rtm_getroute_parse_ip_proto()
/Linux-v4.19/include/linux/netfilter/ipset/
Dip_set_getport.h25 case IPPROTO_TCP: in ip_set_proto_with_ports()

1234567891011