Searched refs:cvp (Results 1 – 3 of 3) sorted by relevance
2165 struct tcp_cookie_values *cvp = NULL; in do_tcp_setsockopt() local2205 cvp = kzalloc(sizeof(*cvp) + ctd.tcpct_used, in do_tcp_setsockopt()2207 if (cvp == NULL) in do_tcp_setsockopt()2210 kref_init(&cvp->kref); in do_tcp_setsockopt()2218 if (cvp != NULL) { in do_tcp_setsockopt()2226 cvp = tp->cookie_values; in do_tcp_setsockopt()2230 if (cvp != NULL) { in do_tcp_setsockopt()2231 cvp->cookie_desired = ctd.tcpct_cookie_desired; in do_tcp_setsockopt()2234 memcpy(cvp->s_data_payload, ctd.tcpct_value, in do_tcp_setsockopt()2236 cvp->s_data_desired = ctd.tcpct_used; in do_tcp_setsockopt()[all …]
571 struct tcp_cookie_values *cvp = tp->cookie_values; in tcp_syn_options() local573 u8 cookie_size = (!tp->rx_opt.cookie_out_never && cvp != NULL) ? in tcp_syn_options()574 tcp_cookie_size_check(cvp->cookie_desired) : in tcp_syn_options()643 opts->hash_location = (__u8 *)&cvp->cookie_pair[0]; in tcp_syn_options()647 cvp->cookie_desired = cookie_size; in tcp_syn_options()649 if (cvp->cookie_desired != cvp->cookie_pair_size) { in tcp_syn_options()654 get_random_bytes(&cvp->cookie_pair[0], in tcp_syn_options()656 cvp->cookie_pair_size = cookie_size; in tcp_syn_options()2452 const struct tcp_cookie_values *cvp = tp->cookie_values; in tcp_make_synack() local2460 if (cvp != NULL && cvp->s_data_constant && cvp->s_data_desired) in tcp_make_synack()[all …]
5624 struct tcp_cookie_values *cvp = tp->cookie_values; in tcp_rcv_synsent_state_process() local5725 if (cvp != NULL && in tcp_rcv_synsent_state_process()5726 cvp->cookie_pair_size > 0 && in tcp_rcv_synsent_state_process()5731 + cvp->cookie_desired; in tcp_rcv_synsent_state_process()5742 if (sizeof(cvp->cookie_pair) >= cookie_pair_size) { in tcp_rcv_synsent_state_process()5743 memcpy(&cvp->cookie_pair[cvp->cookie_desired], in tcp_rcv_synsent_state_process()5745 cvp->cookie_pair_size = cookie_pair_size; in tcp_rcv_synsent_state_process()