Searched refs:tcp (Results 1 - 25 of 566) sorted by relevance

1234567891011>>

/linux-master/tools/testing/selftests/bpf/progs/
H A Dskb_pkt_end.c32 struct tcphdr *tcp; local
43 tcp = (void*)(ip + 1);
44 if (tcp->dest != 0)
46 if (!tcp)
49 return tcp->urg_ptr;
H A Dtest_pkt_access.c12 #include <linux/tcp.h>
89 struct tcphdr *tcp = NULL; local
94 tcp = data + off;
95 if (tcp + 1 > data_end)
98 tcp->check++;
108 struct tcphdr *tcp = NULL; local
122 tcp = (struct tcphdr *)((void *)(iph) + ihl_len);
130 tcp = (struct tcphdr *)((void *)(ip6h) + ihl_len);
139 if (tcp) {
140 if (test_pkt_write_access_subprog(skb, (void *)tcp
[all...]
H A Dtest_tcp_custom_syncookie.c62 struct tcphdr *tcp; member in struct:tcp_syncookie
97 ctx->tcp = (struct tcphdr *)(ctx->ipv4 + 1);
111 ctx->tcp = (struct tcphdr *)(ctx->ipv6 + 1);
117 if (ctx->tcp + 1 > ctx->data_end)
132 if (ctx->tcp->doff < sizeof(*ctx->tcp) / 4)
136 if (bpf_skb_change_tail(ctx->skb, data_len + 60 - ctx->tcp->doff * 4, 0))
145 ctx->tcp = (struct tcphdr *)(ctx->ipv4 + 1);
149 ctx->tcp = (struct tcphdr *)(ctx->ipv6 + 1);
152 if ((void *)ctx->tcp
[all...]
H A Dtest_migrate_reuseport.c19 #include <linux/tcp.h>
50 struct tcphdr *tcp = NULL; local
65 tcp = (struct tcphdr *)((void *)ip + ip->ihl * 4);
77 tcp = (struct tcphdr *)(ipv6 + 1);
84 if (tcp + 1 > data_end)
87 if (tcp->dest != server_port)
90 if (!tcp->syn && tcp->ack)
H A Dfexit_bpf2bpf.c7 #include <linux/tcp.h>
162 struct tcphdr *tcp; local
167 tcp = data + off;
168 if (tcp + 1 > data_end)
172 tcp->check++;
173 tcp->syn = 0;
H A Dbpf_dctcp_release.c8 #include <linux/tcp.h>
H A Dtest_assign_reuse.c9 #include <linux/tcp.h>
20 struct tcphdr tcp; member in union:__anon4702
39 if (ctx->data + sizeof(headers.tcp) > ctx->data_end)
42 if (__builtin_memcmp(&headers.tcp, ctx->data, sizeof(headers.tcp)) != 0)
89 __builtin_memcpy(&headers.tcp, th, sizeof(headers.tcp));
H A Dxdp_synproxy_kern.c371 struct tcphdr *tcp; member in struct:header_pointers
397 hdr->tcp = (void *)hdr->ipv4 + hdr->ipv4->ihl * 4;
414 hdr->tcp = (void *)hdr->ipv6 + sizeof(*hdr->ipv6);
421 if (hdr->tcp + 1 > data_end)
423 hdr->tcp_len = hdr->tcp->doff * 4;
424 if (hdr->tcp_len < sizeof(*hdr->tcp))
449 tup.ipv4.sport = hdr->tcp->source;
450 tup.ipv4.dport = hdr->tcp->dest;
455 tup.ipv6.sport = hdr->tcp->source;
456 tup.ipv6.dport = hdr->tcp
[all...]
H A Dbpf_iter_tcp6.c69 static bool tcp_in_initial_slowstart(const struct tcp_sock *tcp) argument
71 return tcp->snd_ssthresh >= TCP_INFINITE_SSTHRESH;
88 icsk = &tp->tcp.inet_conn;
118 rx_queue = tp->tcp.rcv_nxt - tp->tcp.copied_seq;
131 tp->tcp.write_seq - tp->tcp.snd_una, rx_queue,
143 tp->tcp.snd_cwnd,
145 : (tcp_in_initial_slowstart(&tp->tcp) ? -1
146 : tp->tcp
[all...]
H A Dtest_sk_assign.c14 #include <linux/tcp.h>
55 get_tuple(struct __sk_buff *skb, bool *ipv4, bool *tcp) argument
96 *tcp = (proto == IPPROTO_TCP);
176 bool tcp = false; local
179 tuple = get_tuple(skb, &ipv4, &tcp);
188 if (tcp)
/linux-master/fs/ocfs2/cluster/
H A DMakefile5 quorum.o tcp.o netdebug.o
/linux-master/net/core/
H A Dsock_destructor.h4 #include <net/tcp.h>
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dflow_dissector.c47 struct tcphdr tcp; member in struct:ipv4_pkt
54 struct tcphdr tcp; member in struct:ipip_pkt
62 struct tcphdr tcp; member in struct:svlan_ipv4_pkt
68 struct tcphdr tcp; member in struct:ipv6_pkt
80 struct tcphdr tcp; member in struct:ipv6_frag_pkt
90 struct tcphdr tcp; member in struct:dvlan_ipv6_pkt
119 .tcp.doff = 5,
120 .tcp.source = 80,
121 .tcp.dest = 8080,
140 .tcp
[all...]
/linux-master/net/netfilter/
H A Dnf_conntrack_proto_tcp.c12 #include <linux/tcp.h>
19 #include <net/tcp.h>
271 seq_printf(s, "%s ", tcp_conntrack_names[ct->proto.tcp.state]);
515 struct ip_ct_tcp *state = &ct->proto.tcp;
586 * syn(-ack) reply, it might differ in seq, ack or tcp options.
753 if (ct->proto.tcp.last_dir != dir &&
754 (ct->proto.tcp.last_index == TCP_FIN_SET ||
755 ct->proto.tcp.last_index == TCP_RST_SET)) {
769 index, dir, ct->proto.tcp.last_index, timeout);
774 ct->proto.tcp
[all...]
H A Dnft_synproxy.c4 #include <net/tcp.h>
24 const struct tcphdr *tcp,
30 if (tcp->ece && tcp->cwr)
47 const struct tcphdr *tcp,
56 if (tcp->syn) {
58 nft_synproxy_tcp_options(opts, tcp, snet, &info, priv);
59 synproxy_send_client_synack(net, skb, tcp, opts);
62 } else if (tcp->ack) {
64 if (synproxy_recv_client_ack(net, skb, tcp, opt
23 nft_synproxy_tcp_options(struct synproxy_options *opts, const struct tcphdr *tcp, struct synproxy_net *snet, struct nf_synproxy_info *info, const struct nft_synproxy *priv) argument
44 nft_synproxy_eval_v4(const struct nft_synproxy *priv, struct nft_regs *regs, const struct nft_pktinfo *pkt, const struct tcphdr *tcp, struct tcphdr *_tcph, struct synproxy_options *opts) argument
75 nft_synproxy_eval_v6(const struct nft_synproxy *priv, struct nft_regs *regs, const struct nft_pktinfo *pkt, const struct tcphdr *tcp, struct tcphdr *_tcph, struct synproxy_options *opts) argument
113 const struct tcphdr *tcp; local
[all...]
H A Dnf_nat_irc.c13 #include <linux/tcp.h>
47 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port;
52 ntohs(exp->saved_proto.tcp.port));
H A Dnf_nat_amanda.c39 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port;
47 port = nf_nat_exp_find_port(exp, ntohs(exp->saved_proto.tcp.port));
H A Dnfnetlink_osf.c14 #include <linux/tcp.h>
17 #include <net/tcp.h>
171 const struct tcphdr *tcp; local
173 tcp = skb_header_pointer(skb, ip_hdrlen(skb), sizeof(struct tcphdr), _tcph);
174 if (!tcp)
177 if (!tcp->syn)
182 ctx->window = ntohs(tcp->window);
184 if (tcp->doff * 4 > sizeof(struct tcphdr)) {
185 ctx->optsize = tcp->doff * 4 - sizeof(struct tcphdr);
193 return tcp;
209 const struct tcphdr *tcp; local
270 const struct tcphdr *tcp; local
[all...]
/linux-master/include/uapi/linux/netfilter/
H A Dxt_ecn.h32 } tcp; member in union:xt_ecn_info::__anon13075
/linux-master/include/uapi/linux/netfilter_ipv4/
H A Dipt_ECN.h30 } tcp; member in union:ipt_ECN_info::__anon13113
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
H A Dpedit.h14 struct tcphdr tcp; member in struct:pedit_headers
/linux-master/drivers/nvme/target/
H A DMakefile10 obj-$(CONFIG_NVME_TARGET_TCP) += nvmet-tcp.o
21 nvmet-tcp-y += tcp.o
/linux-master/drivers/nvme/host/
H A DMakefile10 obj-$(CONFIG_NVME_TCP) += nvme-tcp.o
30 nvme-tcp-y += tcp.o
/linux-master/samples/bpf/
H A Dparse_varlen.c13 #include <linux/tcp.h>
22 static int tcp(void *data, uint64_t tp_off, void *data_end) function
24 struct tcphdr *tcp = data + tp_off; local
26 if (tcp + 1 > data_end)
28 if (tcp->dest == htons(80) || tcp->source == htons(80))
72 return tcp(data, nh_off + ihl_len, data_end);
106 return tcp(data, nh_off + ihl_len, data_end);
/linux-master/drivers/net/ethernet/chelsio/libcxgb/
H A Dlibcxgb_cm.c33 #include <linux/tcp.h>
54 struct tcphdr *tcp = (struct tcphdr *) local
60 ntohs(tcp->source), ntohs(tcp->dest));
67 ntohs(tcp->source), ntohs(tcp->dest));
72 *peer_port = tcp->source;
73 *local_port = tcp->dest;

Completed in 386 milliseconds

1234567891011>>