| /linux/net/netfilter/ |
| A D | nf_conntrack_proto_tcp.c | 774 memset(&ct->proto.tcp, 0, sizeof(ct->proto.tcp)); in tcp_new() 790 memset(&ct->proto.tcp, 0, sizeof(ct->proto.tcp)); in tcp_new() 936 ct->proto.tcp.seen[ct->proto.tcp.last_dir].td_end = in nf_conntrack_tcp_packet() 937 ct->proto.tcp.last_end; in nf_conntrack_tcp_packet() 938 ct->proto.tcp.seen[ct->proto.tcp.last_dir].td_maxend = in nf_conntrack_tcp_packet() 939 ct->proto.tcp.last_end; in nf_conntrack_tcp_packet() 940 ct->proto.tcp.seen[ct->proto.tcp.last_dir].td_maxwin = in nf_conntrack_tcp_packet() 943 ct->proto.tcp.seen[ct->proto.tcp.last_dir].td_scale = in nf_conntrack_tcp_packet() 946 ct->proto.tcp.seen[ct->proto.tcp.last_dir].flags = in nf_conntrack_tcp_packet() 955 ct->proto.tcp.last_end = in nf_conntrack_tcp_packet() [all …]
|
| A D | nft_synproxy.c | 30 if (tcp->ece && tcp->cwr) in nft_synproxy_tcp_options() 47 const struct tcphdr *tcp, in nft_synproxy_eval_v4() argument 56 if (tcp->syn) { in nft_synproxy_eval_v4() 62 } else if (tcp->ack) { in nft_synproxy_eval_v4() 65 ntohl(tcp->seq))) { in nft_synproxy_eval_v4() 78 const struct tcphdr *tcp, in nft_synproxy_eval_v6() argument 87 if (tcp->syn) { in nft_synproxy_eval_v6() 93 } else if (tcp->ack) { in nft_synproxy_eval_v6() 96 ntohl(tcp->seq))) { in nft_synproxy_eval_v6() 113 const struct tcphdr *tcp; in nft_synproxy_do_eval() local [all …]
|
| A D | nfnetlink_osf.c | 171 const struct tcphdr *tcp; in nf_osf_hdr_ctx_init() local 174 if (!tcp) in nf_osf_hdr_ctx_init() 177 if (!tcp->syn) in nf_osf_hdr_ctx_init() 182 ctx->window = ntohs(tcp->window); in nf_osf_hdr_ctx_init() 193 return tcp; in nf_osf_hdr_ctx_init() 209 const struct tcphdr *tcp; in nf_osf_match() local 215 if (!tcp) in nf_osf_match() 240 &ip->daddr, ntohs(tcp->dest), in nf_osf_match() 252 &ip->daddr, ntohs(tcp->dest)); in nf_osf_match() 270 const struct tcphdr *tcp; in nf_osf_find() local [all …]
|
| A D | nf_nat_amanda.c | 39 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port; in help() 47 for (port = ntohs(exp->saved_proto.tcp.port); port != 0; port++) { in help() 50 exp->tuple.dst.u.tcp.port = htons(port); in help()
|
| A D | nf_conntrack_proto.c | 262 tuple.src.u.tcp.port = inet->inet_sport; in getorigdst() 264 tuple.dst.u.tcp.port = inet->inet_dport; in getorigdst() 289 .tuple.dst.u.tcp.port; in getorigdst() 303 &tuple.src.u3.ip, ntohs(tuple.src.u.tcp.port), in getorigdst() 304 &tuple.dst.u3.ip, ntohs(tuple.dst.u.tcp.port)); in getorigdst() 331 tuple.src.u.tcp.port = inet->inet_sport; in ipv6_getorigdst() 333 tuple.dst.u.tcp.port = inet->inet_dport; in ipv6_getorigdst() 349 &tuple.src.u3.ip6, ntohs(tuple.src.u.tcp.port), in ipv6_getorigdst() 350 &tuple.dst.u3.ip6, ntohs(tuple.dst.u.tcp.port)); in ipv6_getorigdst() 454 ct->proto.tcp.seen[0].td_maxwin = 0; in nf_ct_tcp_fixup() [all …]
|
| A D | nf_nat_irc.c | 47 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port; in help() 52 for (port = ntohs(exp->saved_proto.tcp.port); port != 0; port++) { in help() 55 exp->tuple.dst.u.tcp.port = htons(port); in help()
|
| A D | nf_nat_ftp.c | 82 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port; in nf_nat_ftp() 90 for (port = ntohs(exp->saved_proto.tcp.port); port != 0; port++) { in nf_nat_ftp() 93 exp->tuple.dst.u.tcp.port = htons(port); in nf_nat_ftp()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| A D | flow_dissector.c | 44 struct tcphdr tcp; member 51 struct tcphdr tcp; member 59 struct tcphdr tcp; member 65 struct tcphdr tcp; member 77 struct tcphdr tcp; member 115 .tcp.doff = 5, 135 .tcp.doff = 5, 157 .tcp.doff = 5, 179 .tcp.doff = 5, 202 .tcp.doff = 5, [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| A D | test_pkt_access.c | 86 struct tcphdr *tcp = NULL; in test_pkt_write_access_subprog() local 91 tcp = data + off; in test_pkt_write_access_subprog() 92 if (tcp + 1 > data_end) in test_pkt_write_access_subprog() 95 tcp->check++; in test_pkt_write_access_subprog() 105 struct tcphdr *tcp = NULL; in test_pkt_access() local 119 tcp = (struct tcphdr *)((void *)(iph) + ihl_len); in test_pkt_access() 127 tcp = (struct tcphdr *)((void *)(ip6h) + ihl_len); in test_pkt_access() 136 if (tcp) { in test_pkt_access() 139 if (((void *)(tcp) + 20) > data_end || proto != 6) in test_pkt_access() 142 if (((void *)(tcp) + 18) > data_end) in test_pkt_access() [all …]
|
| A D | test_migrate_reuseport.c | 50 struct tcphdr *tcp = NULL; in drop_ack() local 65 tcp = (struct tcphdr *)((void *)ip + ip->ihl * 4); in drop_ack() 77 tcp = (struct tcphdr *)(ipv6 + 1); in drop_ack() 84 if (tcp + 1 > data_end) in drop_ack() 87 if (tcp->dest != server_port) in drop_ack() 90 if (!tcp->syn && tcp->ack) in drop_ack()
|
| A D | skb_pkt_end.c | 32 struct tcphdr *tcp; in main_prog() local 43 tcp = (void*)(ip + 1); in main_prog() 44 if (tcp->dest != 0) in main_prog() 46 if (!tcp) in main_prog() 49 return tcp->urg_ptr; in main_prog()
|
| A D | bpf_iter_tcp6.c | 69 static bool tcp_in_initial_slowstart(const struct tcp_sock *tcp) in tcp_in_initial_slowstart() argument 71 return tcp->snd_ssthresh >= TCP_INFINITE_SSTHRESH; in tcp_in_initial_slowstart() 88 icsk = &tp->tcp.inet_conn; in dump_tcp6_sock() 118 rx_queue = tp->tcp.rcv_nxt - tp->tcp.copied_seq; in dump_tcp6_sock() 131 tp->tcp.write_seq - tp->tcp.snd_una, rx_queue, in dump_tcp6_sock() 143 tp->tcp.snd_cwnd, in dump_tcp6_sock() 145 : (tcp_in_initial_slowstart(&tp->tcp) ? -1 in dump_tcp6_sock() 146 : tp->tcp.snd_ssthresh) in dump_tcp6_sock()
|
| A D | xdpwall.c | 173 static __always_inline bool tcphdr_only_contains_flag(struct tcphdr *tcp, in tcphdr_only_contains_flag() argument 176 return (tcp_flag_word(tcp) & in tcphdr_only_contains_flag() 181 struct tcphdr *tcp) { in set_tcp_flags() argument 182 if (tcphdr_only_contains_flag(tcp, TCP_FLAG_SYN)) in set_tcp_flags() 184 else if (tcphdr_only_contains_flag(tcp, TCP_FLAG_ACK)) in set_tcp_flags() 186 else if (tcphdr_only_contains_flag(tcp, TCP_FLAG_RST)) in set_tcp_flags() 193 struct tcphdr *tcp = transport_hdr; in parse_tcp() local 195 if (tcp + 1 > data_end) in parse_tcp() 198 info->sport = bpf_ntohs(tcp->source); in parse_tcp() 199 info->dport = bpf_ntohs(tcp->dest); in parse_tcp() [all …]
|
| A D | fexit_bpf2bpf.c | 164 struct tcphdr *tcp; in new_test_pkt_write_access_subprog() local 169 tcp = data + off; in new_test_pkt_write_access_subprog() 170 if (tcp + 1 > data_end) in new_test_pkt_write_access_subprog() 174 tcp->check++; in new_test_pkt_write_access_subprog() 175 tcp->syn = 0; in new_test_pkt_write_access_subprog()
|
| A D | test_sk_assign.c | 43 get_tuple(struct __sk_buff *skb, bool *ipv4, bool *tcp) in get_tuple() argument 85 *tcp = (proto == IPPROTO_TCP); in get_tuple() 166 bool tcp = false; in bpf_sk_assign_test() local 170 tuple = get_tuple(skb, &ipv4, &tcp); in bpf_sk_assign_test() 179 if (tcp) in bpf_sk_assign_test()
|
| A D | bpf_flow.c | 157 struct tcphdr *tcp, _tcp; in parse_ip_proto() local 212 tcp = bpf_flow_dissect_get_header(skb, sizeof(*tcp), &_tcp); in parse_ip_proto() 213 if (!tcp) in parse_ip_proto() 216 if (tcp->doff < 5) in parse_ip_proto() 219 if ((__u8 *)tcp + (tcp->doff << 2) > data_end) in parse_ip_proto() 222 keys->sport = tcp->source; in parse_ip_proto() 223 keys->dport = tcp->dest; in parse_ip_proto()
|
| /linux/samples/bpf/ |
| A D | parse_varlen.c | 22 static int tcp(void *data, uint64_t tp_off, void *data_end) in tcp() function 24 struct tcphdr *tcp = data + tp_off; in tcp() local 26 if (tcp + 1 > data_end) in tcp() 28 if (tcp->dest == htons(80) || tcp->source == htons(80)) in tcp() 72 return tcp(data, nh_off + ihl_len, data_end); in parse_ipv4() 106 return tcp(data, nh_off + ihl_len, data_end); in parse_ipv6()
|
| /linux/net/ipv4/netfilter/ |
| A D | nf_nat_h323.c | 290 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port; in nat_t120() 323 ntohs(exp->tuple.src.u.tcp.port), in nat_t120() 325 ntohs(exp->tuple.dst.u.tcp.port)); in nat_t120() 342 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port; in nat_h245() 383 ntohs(exp->tuple.src.u.tcp.port), in nat_h245() 385 ntohs(exp->tuple.dst.u.tcp.port)); in nat_h245() 434 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port; in nat_q931() 488 ntohs(exp->tuple.src.u.tcp.port), in nat_q931() 490 ntohs(exp->tuple.dst.u.tcp.port)); in nat_q931() 531 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port; in nat_callforwarding() [all …]
|
| /linux/drivers/net/ethernet/chelsio/libcxgb/ |
| A D | libcxgb_cm.c | 53 struct tcphdr *tcp = (struct tcphdr *) in cxgb_get_4tuple() local 59 ntohs(tcp->source), ntohs(tcp->dest)); in cxgb_get_4tuple() 66 ntohs(tcp->source), ntohs(tcp->dest)); in cxgb_get_4tuple() 71 *peer_port = tcp->source; in cxgb_get_4tuple() 72 *local_port = tcp->dest; in cxgb_get_4tuple()
|
| /linux/tools/testing/selftests/net/forwarding/ |
| A D | sch_red.sh | 275 backlog=$(build_backlog $((3 * limit / 2)) tcp tos=0x01) 288 -a own -b $h3_mac -t tcp -q tos=0x01 & 311 -a own -b $h3_mac -t tcp -q tos=0x01 & 337 -a own -b $h3_mac -t tcp -q tos=0x01 & 341 backlog=$(build_backlog $((2 * limit / 3)) tcp tos=0x01) 349 backlog=$(build_backlog $((3 * limit / 2)) tcp tos=0x01) 411 -a own -b $h3_mac -t tcp -q tos=0x01 & 417 backlog=$(build_backlog $((2 * limit / 3)) tcp tos=0x01) 422 backlog=$(build_backlog $((3 * limit / 2)) tcp tos=0x01)
|
| /linux/drivers/net/ethernet/qlogic/qed/ |
| A D | qed_iwarp.c | 590 p_tcp_ramrod->tcp.local_ip, in qed_iwarp_print_tcp_ramrod() 594 p_tcp_ramrod->tcp.vlan_id); in qed_iwarp_print_tcp_ramrod() 608 p_tcp_ramrod->tcp.ttl, in qed_iwarp_print_tcp_ramrod() 610 p_tcp_ramrod->tcp.mss, in qed_iwarp_print_tcp_ramrod() 613 p_tcp_ramrod->tcp.flags); in qed_iwarp_print_tcp_ramrod() 675 tcp = &p_tcp_ramrod->tcp; in qed_iwarp_tcp_offload() 679 qed_set_fw_mac_addr(&tcp->local_mac_addr_hi, &tcp->local_mac_addr_mid, in qed_iwarp_tcp_offload() 703 tcp->flow_label = 0; in qed_iwarp_tcp_offload() 704 tcp->ttl = 0x40; in qed_iwarp_tcp_offload() 705 tcp->tos_or_tc = 0; in qed_iwarp_tcp_offload() [all …]
|
| /linux/tools/testing/selftests/netfilter/ |
| A D | conntrack_tcp_unreplied.sh | 97 ct state new tcp flags syn ip daddr 10.99.99.99 tcp dport 80 counter name "connreq" accept 98 ct state new ct status dnat tcp dport 8080 counter name "redir" accept 121 ip daddr 10.99.99.99 tcp dport 80 redirect to :8080 130 count=$(ip netns exec $ns2 conntrack -L -p tcp --dport 80 2>/dev/null | wc -l) 142 count=$(ip netns exec $ns2 conntrack -L -p tcp --reply-port-src 8080 2>/dev/null | wc -l)
|
| /linux/net/core/ |
| A D | selftests.c | 22 bool tcp; member 67 if (attr->tcp) in net_test_get_skb() 88 if (attr->tcp) in net_test_get_skb() 102 if (attr->tcp) { in net_test_get_skb() 120 if (attr->tcp) in net_test_get_skb() 125 if (attr->tcp) in net_test_get_skb() 154 if (attr->tcp) { in net_test_get_skb() 208 if (tpriv->packet->tcp) { in net_test_loopback_validate() 335 attr.tcp = true; in net_test_phy_loopback_tcp()
|
| /linux/net/netfilter/ipvs/ |
| A D | ip_vs_nfct.c | 112 new_tuple.src.u.tcp.port = cp->dport; in ip_vs_update_conntrack() 117 new_tuple.dst.u.tcp.port = cp->vport; in ip_vs_update_conntrack() 159 &orig->src.u3, orig->src.u.tcp.port, in ip_vs_nfct_expect_callback() 160 &orig->dst.u3, orig->dst.u.tcp.port, &p); in ip_vs_nfct_expect_callback() 172 new_reply.dst.u.tcp.port = cp->vport; in ip_vs_nfct_expect_callback() 188 new_reply.src.u.tcp.port = cp->dport; in ip_vs_nfct_expect_callback()
|
| /linux/drivers/nvme/host/ |
| A D | Makefile | 10 obj-$(CONFIG_NVME_TCP) += nvme-tcp.o 27 nvme-tcp-y += tcp.o
|