/kernel/linux/linux-5.10/net/ipv4/ |
D | datagram.c | 103 const struct ip_options_rcu *inet_opt; in ip4_datagram_release_cb() local 116 inet_opt = rcu_dereference(inet->inet_opt); in ip4_datagram_release_cb() 117 if (inet_opt && inet_opt->opt.srr) in ip4_datagram_release_cb() 118 daddr = inet_opt->opt.faddr; in ip4_datagram_release_cb()
|
D | af_inet.c | 159 kfree(rcu_dereference_protected(inet->inet_opt, 1)); in inet_sock_destruct() 1237 struct ip_options_rcu *inet_opt; in inet_sk_reselect_saddr() local 1239 inet_opt = rcu_dereference_protected(inet->inet_opt, in inet_sk_reselect_saddr() 1241 if (inet_opt && inet_opt->opt.srr) in inet_sk_reselect_saddr() 1242 daddr = inet_opt->opt.faddr; in inet_sk_reselect_saddr() 1282 struct ip_options_rcu *inet_opt; in inet_sk_rebuild_header() local 1292 inet_opt = rcu_dereference(inet->inet_opt); in inet_sk_rebuild_header() 1294 if (inet_opt && inet_opt->opt.srr) in inet_sk_rebuild_header() 1295 daddr = inet_opt->opt.faddr; in inet_sk_rebuild_header()
|
D | ip_output.c | 466 struct ip_options_rcu *inet_opt; in __ip_queue_xmit() local 476 inet_opt = rcu_dereference(inet->inet_opt); in __ip_queue_xmit() 489 if (inet_opt && inet_opt->opt.srr) in __ip_queue_xmit() 490 daddr = inet_opt->opt.faddr; in __ip_queue_xmit() 510 if (inet_opt && inet_opt->opt.is_strictroute && rt->rt_uses_gateway) in __ip_queue_xmit() 514 skb_push(skb, sizeof(struct iphdr) + (inet_opt ? inet_opt->opt.optlen : 0)); in __ip_queue_xmit() 528 if (inet_opt && inet_opt->opt.optlen) { in __ip_queue_xmit() 529 iph->ihl += inet_opt->opt.optlen >> 2; in __ip_queue_xmit() 530 ip_options_build(skb, &inet_opt->opt, inet->inet_daddr, rt, 0); in __ip_queue_xmit()
|
D | raw.c | 577 struct ip_options_rcu *inet_opt; in raw_sendmsg() local 580 inet_opt = rcu_dereference(inet->inet_opt); in raw_sendmsg() 581 if (inet_opt) { in raw_sendmsg() 582 memcpy(&opt_copy, inet_opt, in raw_sendmsg() 583 sizeof(*inet_opt) + inet_opt->opt.optlen); in raw_sendmsg()
|
D | tcp_ipv4.c | 208 struct ip_options_rcu *inet_opt; in tcp_v4_connect() local 218 inet_opt = rcu_dereference_protected(inet->inet_opt, in tcp_v4_connect() 220 if (inet_opt && inet_opt->opt.srr) { in tcp_v4_connect() 223 nexthop = inet_opt->opt.faddr; in tcp_v4_connect() 245 if (!inet_opt || !inet_opt->opt.srr) in tcp_v4_connect() 264 if (inet_opt) in tcp_v4_connect() 265 inet_csk(sk)->icsk_ext_hdr_len = inet_opt->opt.optlen; in tcp_v4_connect() 1531 struct ip_options_rcu *inet_opt; in tcp_v4_syn_recv_sock() local 1550 inet_opt = rcu_dereference(ireq->ireq_opt); in tcp_v4_syn_recv_sock() 1551 RCU_INIT_POINTER(newinet->inet_opt, inet_opt); in tcp_v4_syn_recv_sock() [all …]
|
D | ping.c | 754 struct ip_options_rcu *inet_opt; in ping_v4_sendmsg() local 757 inet_opt = rcu_dereference(inet->inet_opt); in ping_v4_sendmsg() 758 if (inet_opt) { in ping_v4_sendmsg() 759 memcpy(&opt_copy, inet_opt, in ping_v4_sendmsg() 760 sizeof(*inet_opt) + inet_opt->opt.optlen); in ping_v4_sendmsg()
|
D | inet_connection_sock.c | 1099 const struct ip_options_rcu *inet_opt; in inet_csk_rebuild_route() local 1105 inet_opt = rcu_dereference(inet->inet_opt); in inet_csk_rebuild_route() 1106 if (inet_opt && inet_opt->opt.srr) in inet_csk_rebuild_route() 1107 daddr = inet_opt->opt.faddr; in inet_csk_rebuild_route()
|
D | ip_sockglue.c | 957 old = rcu_dereference_protected(inet->inet_opt, in do_ip_setsockopt() 976 rcu_assign_pointer(inet->inet_opt, opt); in do_ip_setsockopt() 1543 struct ip_options_rcu *inet_opt; in do_ip_getsockopt() local 1545 inet_opt = rcu_dereference_protected(inet->inet_opt, in do_ip_getsockopt() 1548 if (inet_opt) in do_ip_getsockopt() 1549 memcpy(optbuf, &inet_opt->opt, in do_ip_getsockopt() 1551 inet_opt->opt.optlen); in do_ip_getsockopt()
|
D | cipso_ipv4.c | 1883 old = rcu_dereference_protected(sk_inet->inet_opt, in cipso_v4_sock_setattr() 1892 rcu_assign_pointer(sk_inet->inet_opt, opt); in cipso_v4_sock_setattr() 2054 hdr_delta = cipso_v4_delopt(&sk_inet->inet_opt); in cipso_v4_sock_delattr() 2143 opt = rcu_dereference(inet_sk(sk)->inet_opt); in cipso_v4_sock_getattr()
|
D | udp.c | 1123 struct ip_options_rcu *inet_opt; in udp_sendmsg() local 1126 inet_opt = rcu_dereference(inet->inet_opt); in udp_sendmsg() 1127 if (inet_opt) { in udp_sendmsg() 1128 memcpy(&opt_copy, inet_opt, in udp_sendmsg() 1129 sizeof(*inet_opt) + inet_opt->opt.optlen); in udp_sendmsg()
|
D | route.c | 578 const struct ip_options_rcu *inet_opt; in build_sk_flow_key() local 582 inet_opt = rcu_dereference(inet->inet_opt); in build_sk_flow_key() 583 if (inet_opt && inet_opt->opt.srr) in build_sk_flow_key() 584 daddr = inet_opt->opt.faddr; in build_sk_flow_key()
|
/kernel/linux/linux-5.10/net/dccp/ |
D | ipv4.c | 48 struct ip_options_rcu *inet_opt; in dccp_v4_connect() local 60 inet_opt = rcu_dereference_protected(inet->inet_opt, in dccp_v4_connect() 62 if (inet_opt != NULL && inet_opt->opt.srr) { in dccp_v4_connect() 65 nexthop = inet_opt->opt.faddr; in dccp_v4_connect() 83 if (inet_opt == NULL || !inet_opt->opt.srr) in dccp_v4_connect() 93 if (inet_opt) in dccp_v4_connect() 94 inet_csk(sk)->icsk_ext_hdr_len = inet_opt->opt.optlen; in dccp_v4_connect() 418 RCU_INIT_POINTER(newinet->inet_opt, rcu_dereference(ireq->ireq_opt)); in dccp_v4_request_recv_sock() 436 newinet->inet_opt = NULL; in dccp_v4_request_recv_sock() 447 newinet->inet_opt = NULL; in dccp_v4_request_recv_sock()
|
D | ipv6.c | 500 newinet->inet_opt = NULL; in dccp_v6_request_recv_sock()
|
/kernel/linux/linux-5.10/net/sctp/ |
D | protocol.c | 179 struct ip_options_rcu *inet_opt, *newopt = NULL; in sctp_v4_copy_ip_options() local 184 inet_opt = rcu_dereference(inet->inet_opt); in sctp_v4_copy_ip_options() 185 if (inet_opt) { in sctp_v4_copy_ip_options() 186 newopt = sock_kmalloc(newsk, sizeof(*inet_opt) + in sctp_v4_copy_ip_options() 187 inet_opt->opt.optlen, GFP_ATOMIC); in sctp_v4_copy_ip_options() 189 memcpy(newopt, inet_opt, sizeof(*inet_opt) + in sctp_v4_copy_ip_options() 190 inet_opt->opt.optlen); in sctp_v4_copy_ip_options() 194 RCU_INIT_POINTER(newinet->inet_opt, newopt); in sctp_v4_copy_ip_options() 202 struct ip_options_rcu *inet_opt; in sctp_v4_ip_options_len() local 206 inet_opt = rcu_dereference(inet->inet_opt); in sctp_v4_ip_options_len() [all …]
|
/kernel/linux/linux-5.10/net/l2tp/ |
D | l2tp_ip.c | 464 const struct ip_options_rcu *inet_opt; in l2tp_ip_sendmsg() local 466 inet_opt = rcu_dereference(inet->inet_opt); in l2tp_ip_sendmsg() 469 if (inet_opt && inet_opt->opt.srr) in l2tp_ip_sendmsg() 470 daddr = inet_opt->opt.faddr; in l2tp_ip_sendmsg()
|
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/ |
D | tcp_nip.c | 642 struct ip_options_rcu *inet_opt; in tcp_nip_connect() local 654 inet_opt = rcu_dereference_protected(inet->inet_opt, in tcp_nip_connect() 692 if (inet_opt) in tcp_nip_connect() 693 inet_csk(sk)->icsk_ext_hdr_len = inet_opt->opt.optlen; in tcp_nip_connect() 942 newinet->inet_opt = NULL; in tcp_nip_syn_recv_sock() 978 newinet->inet_opt = NULL; in tcp_nip_syn_recv_sock()
|
/kernel/linux/linux-5.10/include/net/ |
D | inet_sock.h | 226 struct ip_options_rcu __rcu *inet_opt; member
|
/kernel/linux/linux-5.10/net/ipv6/ |
D | tcp_ipv6.c | 1332 newinet->inet_opt = NULL; in tcp_v6_syn_recv_sock()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
D | chtls_cm.c | 1209 newinet->inet_opt = NULL; in chtls_recv_sock()
|
/kernel/linux/linux-5.10/net/ |
D | socket.c | 3590 opt = rcu_dereference_protected(inet->inet_opt, in kernel_sock_ip_overhead()
|