Searched refs:saved_syn (Results 1 – 7 of 7) sorted by relevance
/linux-6.6.21/include/linux/ |
D | tcp.h | 454 struct saved_syn *saved_syn; member 524 tp->saved_syn = req->saved_syn; in tcp_move_syn() 525 req->saved_syn = NULL; in tcp_move_syn() 530 kfree(tp->saved_syn); in tcp_saved_syn_free() 531 tp->saved_syn = NULL; in tcp_saved_syn_free() 534 static inline u32 tcp_saved_syn_len(const struct saved_syn *saved_syn) in tcp_saved_syn_len() argument 536 return saved_syn->mac_hdrlen + saved_syn->network_hdrlen + in tcp_saved_syn_len() 537 saved_syn->tcp_hdrlen; in tcp_saved_syn_len()
|
/linux-6.6.21/include/net/ |
D | request_sock.h | 44 struct saved_syn { struct 70 struct saved_syn *saved_syn; argument 107 req->saved_syn = NULL; in reqsk_alloc() 122 kfree(req->saved_syn); in __reqsk_free()
|
/linux-6.6.21/tools/testing/selftests/bpf/progs/ |
D | setget_sockopt.c | 333 __u8 saved_syn[20]; in test_tcp_saved_syn() local 341 saved_syn, sizeof(saved_syn)); in test_tcp_saved_syn()
|
/linux-6.6.21/net/core/ |
D | filter.c | 5311 if (!tp->saved_syn || in sol_tcp_sockopt() 5312 *optlen > tcp_saved_syn_len(tp->saved_syn)) in sol_tcp_sockopt() 5314 memcpy(optval, tp->saved_syn->data, *optlen); in sol_tcp_sockopt() 5589 struct saved_syn *saved_syn; in bpf_sock_ops_get_syn() local 5596 saved_syn = inet_reqsk(sk)->saved_syn; in bpf_sock_ops_get_syn() 5598 saved_syn = tcp_sk(sk)->saved_syn; in bpf_sock_ops_get_syn() 5600 if (!saved_syn) in bpf_sock_ops_get_syn() 5604 hdr_start = saved_syn->data + in bpf_sock_ops_get_syn() 5605 saved_syn->mac_hdrlen + in bpf_sock_ops_get_syn() 5606 saved_syn->network_hdrlen; in bpf_sock_ops_get_syn() [all …]
|
/linux-6.6.21/net/ipv4/ |
D | tcp_input.c | 6909 struct saved_syn *saved_syn; in tcp_reqsk_record_syn() local 6922 saved_syn = kmalloc(struct_size(saved_syn, data, len), in tcp_reqsk_record_syn() 6924 if (saved_syn) { in tcp_reqsk_record_syn() 6925 saved_syn->mac_hdrlen = mac_hdrlen; in tcp_reqsk_record_syn() 6926 saved_syn->network_hdrlen = skb_network_header_len(skb); in tcp_reqsk_record_syn() 6927 saved_syn->tcp_hdrlen = tcp_hdrlen(skb); in tcp_reqsk_record_syn() 6928 memcpy(saved_syn->data, base, len); in tcp_reqsk_record_syn() 6929 req->saved_syn = saved_syn; in tcp_reqsk_record_syn()
|
D | tcp.c | 4184 if (tp->saved_syn) { in do_tcp_getsockopt() 4185 if (len < tcp_saved_syn_len(tp->saved_syn)) { in do_tcp_getsockopt() 4186 len = tcp_saved_syn_len(tp->saved_syn); in do_tcp_getsockopt() 4194 len = tcp_saved_syn_len(tp->saved_syn); in do_tcp_getsockopt() 4199 if (copy_to_sockptr(optval, tp->saved_syn->data, len)) { in do_tcp_getsockopt()
|
D | inet_connection_sock.c | 943 req->saved_syn = NULL; in reqsk_migrate_reset()
|