| /linux-6.15/tools/testing/selftests/bpf/progs/ |
| H A D | test_tcp_custom_syncookie.c | 255 ctx->attrs.snd_wscale = *wscale; in tcp_parse_option() 297 if (!ctx->attrs.wscale_ok || ctx->attrs.snd_wscale != 7) in tcp_validate_sysctl() 353 hash |= ctx->attrs.snd_wscale & BPF_SYNCOOKIE_WSCALE_MASK; in tcp_prepare_cookie() 375 ctx->attrs.snd_wscale); in tcp_write_options() 494 ctx->attrs.snd_wscale = cookie & BPF_SYNCOOKIE_WSCALE_MASK; in tcp_validate_cookie() 495 ctx->attrs.rcv_wscale = ctx->attrs.snd_wscale; in tcp_validate_cookie() 496 ctx->attrs.wscale_ok = ctx->attrs.snd_wscale == BPF_SYNCOOKIE_WSCALE_MASK; in tcp_validate_cookie()
|
| /linux-6.15/net/ipv4/ |
| H A D | syncookies.c | 67 options = ireq->wscale_ok ? ireq->snd_wscale : TS_OPT_WSCALE_MASK; in cookie_init_timestamp() 258 tcp_opt->snd_wscale = options & TS_OPT_WSCALE_MASK; in cookie_timestamp_decode() 345 ireq->snd_wscale = tcp_opt->snd_wscale; in cookie_tcp_reqsk_alloc()
|
| H A D | tcp_minisocks.c | 579 newtp->rx_opt.snd_wscale = ireq->snd_wscale; in tcp_create_openreq_child() 582 newtp->rx_opt.snd_wscale = newtp->rx_opt.rcv_wscale = 0; in tcp_create_openreq_child() 585 newtp->snd_wnd = ntohs(tcp_hdr(skb)->window) << newtp->rx_opt.snd_wscale; in tcp_create_openreq_child()
|
| H A D | tcp_input.c | 3708 nwin <<= tp->rx_opt.snd_wscale; in tcp_ack_update_window() 4253 __u8 snd_wscale = *(__u8 *)ptr; in tcp_parse_options() local 4255 if (snd_wscale > TCP_MAX_WSCALE) { in tcp_parse_options() 4258 snd_wscale, in tcp_parse_options() 4260 snd_wscale = TCP_MAX_WSCALE; in tcp_parse_options() 4262 opt_rx->snd_wscale = snd_wscale; in tcp_parse_options() 4502 tp->rx_opt.snd_wscale)) in tcp_disordered_ack_check() 6382 if (!tp->rx_opt.snd_wscale) in tcp_finish_connect() 6569 tp->rx_opt.snd_wscale = tp->rx_opt.rcv_wscale = 0; in tcp_rcv_synsent_state_process() 6898 tp->snd_wnd = ntohs(th->window) << tp->rx_opt.snd_wscale; in tcp_rcv_state_process() [all …]
|
| H A D | tcp.c | 3492 u16 snd_wscale = opt.opt_val & 0xFFFF; in tcp_repair_options_est() local 3495 if (snd_wscale > TCP_MAX_WSCALE || rcv_wscale > TCP_MAX_WSCALE) in tcp_repair_options_est() 3498 tp->rx_opt.snd_wscale = snd_wscale; in tcp_repair_options_est() 4153 info->tcpi_snd_wscale = tp->rx_opt.snd_wscale; in tcp_get_info()
|
| /linux-6.15/include/linux/ |
| H A D | tcp.h | 123 snd_wscale : 4, /* Window scaling received from sender */ member 135 rx_opt->wscale_ok = rx_opt->snd_wscale = 0; in tcp_clear_options()
|
| /linux-6.15/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
| H A D | chtls_cm.h | 91 #define SND_WSCALE(tp) ((tp)->rx_opt.snd_wscale)
|
| H A D | chtls_cm.c | 155 tp->rx_opt.snd_wscale = TCPOPT_SACK_G(opt); in assign_rxopt() 465 tp->max_window = 0xFFFF << (tp->rx_opt.snd_wscale); in chtls_disconnect() 1388 inet_rsk(oreq)->snd_wscale = req->tcpopt.wsf; in chtls_pass_accept_request()
|
| /linux-6.15/drivers/target/iscsi/cxgbit/ |
| H A D | cxgbit.h | 241 u8 snd_wscale; member
|
| H A D | cxgbit_cm.c | 1396 if (csk->snd_wscale) in cxgbit_tx_flowc_wr_credits() 1463 if (csk->snd_wscale) { in cxgbit_send_tx_flowc_wr() 1465 flowc->mnemval[index].val = cpu_to_be32(csk->snd_wscale); in cxgbit_send_tx_flowc_wr() 1650 csk->snd_wscale = TCPOPT_SND_WSCALE_G(tcp_opt); in cxgbit_pass_establish()
|
| /linux-6.15/drivers/infiniband/hw/irdma/ |
| H A D | cm.h | 233 u8 snd_wscale; member
|
| H A D | cm.c | 723 cm_node->tcp_cntxt.snd_wscale = in irdma_process_options() 769 << cm_node->tcp_cntxt.snd_wscale; in irdma_handle_tcp_options() 3335 tcp_info->snd_wscale = cm_node->tcp_cntxt.snd_wscale; in irdma_init_tcp_ctx()
|
| H A D | type.h | 903 u8 snd_wscale; member
|
| H A D | ctrl.c | 1002 FIELD_PREP(IRDMAQPC_SNDSCALE, tcp->snd_wscale); in irdma_sc_qp_setctx()
|
| /linux-6.15/include/net/ |
| H A D | inet_sock.h | 83 u16 snd_wscale : 4, member
|
| H A D | tcp.h | 543 u8 snd_wscale; member 827 __tcp_fast_path_on(tp, tp->snd_wnd >> tp->rx_opt.snd_wscale); in tcp_fast_path_on()
|
| /linux-6.15/drivers/infiniband/hw/cxgb4/ |
| H A D | iw_cxgb4.h | 935 u32 snd_wscale; member
|
| H A D | cm.c | 634 flowc->mnemval[8].val = cpu_to_be32(ep->snd_wscale); in send_flowc() 1241 ep->snd_wscale = TCPOPT_SND_WSCALE_G(tcp_opt); in act_establish() 2692 ep->snd_wscale = TCPOPT_SND_WSCALE_G(tcp_opt); in pass_establish() 3989 req->tcpopt.wsf = tmp_opt.snd_wscale; in build_cpl_pass_accept_req()
|
| /linux-6.15/net/core/ |
| H A D | filter.c | 12091 if (attrs->snd_wscale > TCP_MAX_WSCALE || in bpf_sk_assign_tcp_reqsk() 12118 ireq->snd_wscale = attrs->snd_wscale; in bpf_sk_assign_tcp_reqsk()
|