Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/net/ipv4/
H A Dsyncookies.c236 struct tcp_options_received *tcp_opt) in cookie_timestamp_decode()
239 u32 options = tcp_opt->rcv_tsecr; in cookie_timestamp_decode()
241 if (!tcp_opt->saw_tstamp) { in cookie_timestamp_decode()
242 tcp_clear_options(tcp_opt); in cookie_timestamp_decode()
249 tcp_opt->sack_ok = (options & TS_OPT_SACK) ? TCP_SACK_SEEN : 0; in cookie_timestamp_decode()
251 if (tcp_opt->sack_ok && !READ_ONCE(net->ipv4.sysctl_tcp_sack)) in cookie_timestamp_decode()
257 tcp_opt->wscale_ok = 1; in cookie_timestamp_decode()
258 tcp_opt->snd_wscale = options & TS_OPT_WSCALE_MASK; in cookie_timestamp_decode()
264 bool cookie_ecn_ok(const struct tcp_options_received *tcp_opt, in cookie_ecn_ok() argument
267 bool ecn_ok = tcp_opt in cookie_ecn_ok()
235 cookie_timestamp_decode(const struct net *net, struct tcp_options_received *tcp_opt) cookie_timestamp_decode() argument
324 struct tcp_options_received tcp_opt; cookie_v4_check() local
355 tcp_parse_options(sock_net(sk), skb, &tcp_opt, 0, NULL); cookie_v4_check() local
[all...]
/kernel/linux/linux-6.6/net/ipv4/
H A Dsyncookies.c234 struct tcp_options_received *tcp_opt) in cookie_timestamp_decode()
237 u32 options = tcp_opt->rcv_tsecr; in cookie_timestamp_decode()
239 if (!tcp_opt->saw_tstamp) { in cookie_timestamp_decode()
240 tcp_clear_options(tcp_opt); in cookie_timestamp_decode()
247 tcp_opt->sack_ok = (options & TS_OPT_SACK) ? TCP_SACK_SEEN : 0; in cookie_timestamp_decode()
249 if (tcp_opt->sack_ok && !READ_ONCE(net->ipv4.sysctl_tcp_sack)) in cookie_timestamp_decode()
255 tcp_opt->wscale_ok = 1; in cookie_timestamp_decode()
256 tcp_opt->snd_wscale = options & TS_OPT_WSCALE_MASK; in cookie_timestamp_decode()
262 bool cookie_ecn_ok(const struct tcp_options_received *tcp_opt, in cookie_ecn_ok() argument
265 bool ecn_ok = tcp_opt in cookie_ecn_ok()
233 cookie_timestamp_decode(const struct net *net, struct tcp_options_received *tcp_opt) cookie_timestamp_decode() argument
322 struct tcp_options_received tcp_opt; cookie_v4_check() local
353 tcp_parse_options(sock_net(sk), skb, &tcp_opt, 0, NULL); cookie_v4_check() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dtest_parse_tcp_hdr_opt.c40 __u8 *tcp_opt, kind, hdr_len; in parse_hdr_opt() local
42 tcp_opt = (__u8 *)(data + state->byte_offset); in parse_hdr_opt()
43 if (tcp_opt + 1 > data_end) in parse_hdr_opt()
46 kind = tcp_opt[0]; in parse_hdr_opt()
58 tcp_opt + sizeof(__u8) + sizeof(__u8) > data_end) in parse_hdr_opt()
61 hdr_len = tcp_opt[1]; in parse_hdr_opt()
69 if (tcp_opt + tcp_hdr_opt_len_tpr > data_end) in parse_hdr_opt()
72 state->server_id = *(__u32 *)&tcp_opt[2]; in parse_hdr_opt()
H A Dtest_misc_tcp_hdr_options.c39 struct tcp_opt reg_opt; in __check_active_hdr_in()
173 struct tcp_opt win_scale_opt = {}; in write_active_opt()
174 struct tcp_opt reg_opt = {}; in write_active_opt()
H A Dtest_tcp_hdr_options.c90 struct tcp_opt regular; in store_option()
135 struct tcp_opt regular; in load_option()
/kernel/linux/linux-5.10/net/ipv6/
H A Dsyncookies.c130 struct tcp_options_received tcp_opt; in cookie_v6_check() local
160 memset(&tcp_opt, 0, sizeof(tcp_opt)); in cookie_v6_check()
161 tcp_parse_options(sock_net(sk), skb, &tcp_opt, 0, NULL); in cookie_v6_check() local
163 if (tcp_opt.saw_tstamp && tcp_opt.rcv_tsecr) { in cookie_v6_check()
167 tcp_opt.rcv_tsecr -= tsoff; in cookie_v6_check()
170 if (!cookie_timestamp_decode(sock_net(sk), &tcp_opt)) in cookie_v6_check()
208 ireq->snd_wscale = tcp_opt.snd_wscale; in cookie_v6_check()
209 ireq->sack_ok = tcp_opt in cookie_v6_check()
[all...]
/kernel/linux/linux-6.6/net/ipv6/
H A Dsyncookies.c130 struct tcp_options_received tcp_opt; in cookie_v6_check() local
160 memset(&tcp_opt, 0, sizeof(tcp_opt)); in cookie_v6_check()
161 tcp_parse_options(sock_net(sk), skb, &tcp_opt, 0, NULL); in cookie_v6_check() local
163 if (tcp_opt.saw_tstamp && tcp_opt.rcv_tsecr) { in cookie_v6_check()
167 tcp_opt.rcv_tsecr -= tsoff; in cookie_v6_check()
170 if (!cookie_timestamp_decode(sock_net(sk), &tcp_opt)) in cookie_v6_check()
208 ireq->snd_wscale = tcp_opt.snd_wscale; in cookie_v6_check()
209 ireq->sack_ok = tcp_opt in cookie_v6_check()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
H A Dtest_misc_tcp_hdr_options.c38 struct tcp_opt reg_opt; in __check_active_hdr_in()
169 struct tcp_opt win_scale_opt = {}; in write_active_opt()
170 struct tcp_opt reg_opt = {}; in write_active_opt()
H A Dtest_tcp_hdr_options.c90 struct tcp_opt regular; in store_option()
135 struct tcp_opt regular; in load_option()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
H A Dtest_tcp_hdr_options.h79 struct tcp_opt { struct
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/
H A Dtest_tcp_hdr_options.h80 struct tcp_opt { struct
/kernel/linux/linux-5.10/drivers/scsi/cxgbi/cxgb4i/
H A Dcxgb4i.c894 unsigned short tcp_opt = ntohs(req->tcp_opt); in do_act_establish() local
944 csk->advmss = lldi->mtus[TCPOPT_MSS_G(tcp_opt)] - 40; in do_act_establish()
945 if (TCPOPT_TSTAMP_G(tcp_opt)) in do_act_establish()
952 csk, TCPOPT_MSS_G(tcp_opt), csk->advmss); in do_act_establish()
954 cxgbi_sock_established(csk, ntohl(req->snd_isn), ntohs(req->tcp_opt)); in do_act_establish()
/kernel/linux/linux-6.6/drivers/scsi/cxgbi/cxgb4i/
H A Dcxgb4i.c895 unsigned short tcp_opt = ntohs(req->tcp_opt); in do_act_establish() local
945 csk->advmss = lldi->mtus[TCPOPT_MSS_G(tcp_opt)] - 40; in do_act_establish()
946 if (TCPOPT_TSTAMP_G(tcp_opt)) in do_act_establish()
953 csk, TCPOPT_MSS_G(tcp_opt), csk->advmss); in do_act_establish()
955 cxgbi_sock_established(csk, ntohl(req->snd_isn), ntohs(req->tcp_opt)); in do_act_establish()
/kernel/linux/linux-5.10/drivers/target/iscsi/cxgbit/
H A Dcxgbit_cm.c1629 u16 tcp_opt = be16_to_cpu(req->tcp_opt); in cxgbit_pass_establish() local
1652 csk->snd_wscale = TCPOPT_SND_WSCALE_G(tcp_opt); in cxgbit_pass_establish()
1653 cxgbit_set_emss(csk, tcp_opt); in cxgbit_pass_establish()
/kernel/linux/linux-6.6/drivers/target/iscsi/cxgbit/
H A Dcxgbit_cm.c1630 u16 tcp_opt = be16_to_cpu(req->tcp_opt); in cxgbit_pass_establish() local
1650 csk->snd_wscale = TCPOPT_SND_WSCALE_G(tcp_opt); in cxgbit_pass_establish()
1651 cxgbit_set_emss(csk, tcp_opt); in cxgbit_pass_establish()
/kernel/linux/linux-5.10/drivers/infiniband/hw/cxgb4/
H A Dcm.c1218 unsigned short tcp_opt = ntohs(req->tcp_opt); in act_establish() local
1239 ep->snd_wscale = TCPOPT_SND_WSCALE_G(tcp_opt); in act_establish()
1241 set_emss(ep, tcp_opt); in act_establish()
2685 u16 tcp_opt = ntohs(req->tcp_opt); in pass_establish() local
2691 ep->snd_wscale = TCPOPT_SND_WSCALE_G(tcp_opt); in pass_establish()
2693 pr_debug("ep %p hwtid %u tcp_opt 0x%02x\n", ep, tid, tcp_opt); in pass_establish()
2695 set_emss(ep, tcp_opt); in pass_establish()
[all...]
/kernel/linux/linux-6.6/drivers/infiniband/hw/cxgb4/
H A Dcm.c1218 unsigned short tcp_opt = ntohs(req->tcp_opt); in act_establish() local
1239 ep->snd_wscale = TCPOPT_SND_WSCALE_G(tcp_opt); in act_establish()
1241 set_emss(ep, tcp_opt); in act_establish()
2679 u16 tcp_opt = ntohs(req->tcp_opt); in pass_establish() local
2688 ep->snd_wscale = TCPOPT_SND_WSCALE_G(tcp_opt); in pass_establish()
2690 pr_debug("ep %p hwtid %u tcp_opt 0x%02x\n", ep, tid, tcp_opt); in pass_establish()
2692 set_emss(ep, tcp_opt); in pass_establish()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb3/
H A Dt3_cpl.h509 __be16 tcp_opt; member
531 /* cpl_pass_establish.tcp_opt fields (also applies act_open_establish) */
636 __be16 tcp_opt; member
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb3/
H A Dt3_cpl.h509 __be16 tcp_opt; member
531 /* cpl_pass_establish.tcp_opt fields (also applies act_open_establish) */
636 __be16 tcp_opt; member
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/
H A Dt4_msg.h612 __be16 tcp_opt; member
628 /* cpl_pass_establish.tcp_opt fields (also applies to act_open_establish) */
669 __be16 tcp_opt; member
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb4/
H A Dt4_msg.h612 __be16 tcp_opt; member
628 /* cpl_pass_establish.tcp_opt fields (also applies to act_open_establish) */
669 __be16 tcp_opt; member
/kernel/linux/linux-5.10/drivers/scsi/cxgbi/cxgb3i/
H A Dcxgb3i.c509 cxgbi_sock_established(csk, ntohl(req->snd_isn), ntohs(req->tcp_opt)); in do_act_establish()
/kernel/linux/linux-6.6/drivers/scsi/cxgbi/cxgb3i/
H A Dcxgb3i.c510 cxgbi_sock_established(csk, ntohl(req->snd_isn), ntohs(req->tcp_opt)); in do_act_establish()
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/inline_crypto/chtls/
H A Dchtls_cm.c1594 make_established(sk, ntohl(req->snd_isn), ntohs(req->tcp_opt)); in chtls_pass_establish()
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/inline_crypto/chtls/
H A Dchtls_cm.c1594 make_established(sk, ntohl(req->snd_isn), ntohs(req->tcp_opt)); in chtls_pass_establish()

Completed in 54 milliseconds