Searched refs:saved_syn (Results 1 – 6 of 6) sorted by relevance
414 struct saved_syn *saved_syn; member482 tp->saved_syn = req->saved_syn; in tcp_move_syn()483 req->saved_syn = NULL; in tcp_move_syn()488 kfree(tp->saved_syn); in tcp_saved_syn_free()489 tp->saved_syn = NULL; in tcp_saved_syn_free()492 static inline u32 tcp_saved_syn_len(const struct saved_syn *saved_syn) in tcp_saved_syn_len() argument494 return saved_syn->mac_hdrlen + saved_syn->network_hdrlen + in tcp_saved_syn_len()495 saved_syn->tcp_hdrlen; in tcp_saved_syn_len()
44 struct saved_syn { struct70 struct saved_syn *saved_syn; argument106 req->saved_syn = NULL; in reqsk_alloc()120 kfree(req->saved_syn); in __reqsk_free()
5168 struct saved_syn *saved_syn; in bpf_sock_ops_get_syn() local5175 saved_syn = inet_reqsk(sk)->saved_syn; in bpf_sock_ops_get_syn()5177 saved_syn = tcp_sk(sk)->saved_syn; in bpf_sock_ops_get_syn()5179 if (!saved_syn) in bpf_sock_ops_get_syn()5184 saved_syn->mac_hdrlen + in bpf_sock_ops_get_syn()5185 saved_syn->network_hdrlen; in bpf_sock_ops_get_syn()5186 ret = saved_syn->tcp_hdrlen; in bpf_sock_ops_get_syn()5189 saved_syn->mac_hdrlen; in bpf_sock_ops_get_syn()5191 saved_syn->tcp_hdrlen; in bpf_sock_ops_get_syn()5196 if (!saved_syn->mac_hdrlen) in bpf_sock_ops_get_syn()[all …]
6766 struct saved_syn *saved_syn; in tcp_reqsk_record_syn() local6779 saved_syn = kmalloc(struct_size(saved_syn, data, len), in tcp_reqsk_record_syn()6781 if (saved_syn) { in tcp_reqsk_record_syn()6782 saved_syn->mac_hdrlen = mac_hdrlen; in tcp_reqsk_record_syn()6783 saved_syn->network_hdrlen = skb_network_header_len(skb); in tcp_reqsk_record_syn()6784 saved_syn->tcp_hdrlen = tcp_hdrlen(skb); in tcp_reqsk_record_syn()6785 memcpy(saved_syn->data, base, len); in tcp_reqsk_record_syn()6786 req->saved_syn = saved_syn; in tcp_reqsk_record_syn()
4128 if (tp->saved_syn) { in do_tcp_getsockopt()4129 if (len < tcp_saved_syn_len(tp->saved_syn)) { in do_tcp_getsockopt()4130 if (put_user(tcp_saved_syn_len(tp->saved_syn), in do_tcp_getsockopt()4138 len = tcp_saved_syn_len(tp->saved_syn); in do_tcp_getsockopt()4143 if (copy_to_user(optval, tp->saved_syn->data, len)) { in do_tcp_getsockopt()
750 req->saved_syn = NULL; in reqsk_migrate_reset()
Completed in 46 milliseconds