Searched refs:saved_syn (Results 1 – 6 of 6) sorted by relevance
| /Linux-v5.15/include/linux/ |
| D | tcp.h | 414 struct saved_syn *saved_syn; member 482 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() argument 494 return saved_syn->mac_hdrlen + saved_syn->network_hdrlen + in tcp_saved_syn_len() 495 saved_syn->tcp_hdrlen; in tcp_saved_syn_len()
|
| /Linux-v5.15/include/net/ |
| D | request_sock.h | 44 struct saved_syn { struct 70 struct saved_syn *saved_syn; member 106 req->saved_syn = NULL; in reqsk_alloc() 120 kfree(req->saved_syn); in __reqsk_free()
|
| /Linux-v5.15/net/core/ |
| D | filter.c | 5003 if (optlen <= 0 || !tp->saved_syn || in _bpf_getsockopt() 5004 optlen > tcp_saved_syn_len(tp->saved_syn)) in _bpf_getsockopt() 5006 memcpy(optval, tp->saved_syn->data, optlen); in _bpf_getsockopt() 5168 struct saved_syn *saved_syn; in bpf_sock_ops_get_syn() local 5175 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() 5183 hdr_start = saved_syn->data + 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() [all …]
|
| /Linux-v5.15/net/ipv4/ |
| D | tcp_input.c | 6749 struct saved_syn *saved_syn; in tcp_reqsk_record_syn() local 6762 saved_syn = kmalloc(struct_size(saved_syn, data, len), in tcp_reqsk_record_syn() 6764 if (saved_syn) { in tcp_reqsk_record_syn() 6765 saved_syn->mac_hdrlen = mac_hdrlen; in tcp_reqsk_record_syn() 6766 saved_syn->network_hdrlen = skb_network_header_len(skb); in tcp_reqsk_record_syn() 6767 saved_syn->tcp_hdrlen = tcp_hdrlen(skb); in tcp_reqsk_record_syn() 6768 memcpy(saved_syn->data, base, len); in tcp_reqsk_record_syn() 6769 req->saved_syn = saved_syn; in tcp_reqsk_record_syn()
|
| D | tcp.c | 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()
|
| D | inet_connection_sock.c | 750 req->saved_syn = NULL; in reqsk_migrate_reset()
|