/Linux-v4.19/net/ipv4/ |
D | datagram.c | 105 const struct ip_options_rcu *inet_opt; in ip4_datagram_release_cb() local 118 inet_opt = rcu_dereference(inet->inet_opt); in ip4_datagram_release_cb() 119 if (inet_opt && inet_opt->opt.srr) in ip4_datagram_release_cb() 120 daddr = inet_opt->opt.faddr; in ip4_datagram_release_cb()
|
D | ip_output.c | 431 struct ip_options_rcu *inet_opt; in __ip_queue_xmit() local 441 inet_opt = rcu_dereference(inet->inet_opt); in __ip_queue_xmit() 454 if (inet_opt && inet_opt->opt.srr) in __ip_queue_xmit() 455 daddr = inet_opt->opt.faddr; in __ip_queue_xmit() 475 if (inet_opt && inet_opt->opt.is_strictroute && rt->rt_uses_gateway) in __ip_queue_xmit() 479 skb_push(skb, sizeof(struct iphdr) + (inet_opt ? inet_opt->opt.optlen : 0)); in __ip_queue_xmit() 493 if (inet_opt && inet_opt->opt.optlen) { in __ip_queue_xmit() 494 iph->ihl += inet_opt->opt.optlen >> 2; in __ip_queue_xmit() 495 ip_options_build(skb, &inet_opt->opt, inet->inet_daddr, rt, 0); in __ip_queue_xmit()
|
D | af_inet.c | 158 kfree(rcu_dereference_protected(inet->inet_opt, 1)); in inet_sock_destruct() 1190 struct ip_options_rcu *inet_opt; in inet_sk_reselect_saddr() local 1192 inet_opt = rcu_dereference_protected(inet->inet_opt, in inet_sk_reselect_saddr() 1194 if (inet_opt && inet_opt->opt.srr) in inet_sk_reselect_saddr() 1195 daddr = inet_opt->opt.faddr; in inet_sk_reselect_saddr() 1235 struct ip_options_rcu *inet_opt; in inet_sk_rebuild_header() local 1245 inet_opt = rcu_dereference(inet->inet_opt); in inet_sk_rebuild_header() 1247 if (inet_opt && inet_opt->opt.srr) in inet_sk_rebuild_header() 1248 daddr = inet_opt->opt.faddr; in inet_sk_rebuild_header()
|
D | tcp_ipv4.c | 212 struct ip_options_rcu *inet_opt; in tcp_v4_connect() local 222 inet_opt = rcu_dereference_protected(inet->inet_opt, in tcp_v4_connect() 224 if (inet_opt && inet_opt->opt.srr) { in tcp_v4_connect() 227 nexthop = inet_opt->opt.faddr; in tcp_v4_connect() 249 if (!inet_opt || !inet_opt->opt.srr) in tcp_v4_connect() 268 if (inet_opt) in tcp_v4_connect() 269 inet_csk(sk)->icsk_ext_hdr_len = inet_opt->opt.optlen; in tcp_v4_connect() 1411 struct ip_options_rcu *inet_opt; in tcp_v4_syn_recv_sock() local 1430 inet_opt = rcu_dereference(ireq->ireq_opt); in tcp_v4_syn_recv_sock() 1431 RCU_INIT_POINTER(newinet->inet_opt, inet_opt); in tcp_v4_syn_recv_sock() [all …]
|
D | raw.c | 581 struct ip_options_rcu *inet_opt; in raw_sendmsg() local 584 inet_opt = rcu_dereference(inet->inet_opt); in raw_sendmsg() 585 if (inet_opt) { in raw_sendmsg() 586 memcpy(&opt_copy, inet_opt, in raw_sendmsg() 587 sizeof(*inet_opt) + inet_opt->opt.optlen); in raw_sendmsg()
|
D | ping.c | 752 struct ip_options_rcu *inet_opt; in ping_v4_sendmsg() local 755 inet_opt = rcu_dereference(inet->inet_opt); in ping_v4_sendmsg() 756 if (inet_opt) { in ping_v4_sendmsg() 757 memcpy(&opt_copy, inet_opt, in ping_v4_sendmsg() 758 sizeof(*inet_opt) + inet_opt->opt.optlen); in ping_v4_sendmsg()
|
D | inet_connection_sock.c | 1059 const struct ip_options_rcu *inet_opt; in inet_csk_rebuild_route() local 1065 inet_opt = rcu_dereference(inet->inet_opt); in inet_csk_rebuild_route() 1066 if (inet_opt && inet_opt->opt.srr) in inet_csk_rebuild_route() 1067 daddr = inet_opt->opt.faddr; in inet_csk_rebuild_route()
|
D | ip_sockglue.c | 658 old = rcu_dereference_protected(inet->inet_opt, in do_ip_setsockopt() 677 rcu_assign_pointer(inet->inet_opt, opt); in do_ip_setsockopt() 1337 struct ip_options_rcu *inet_opt; in do_ip_getsockopt() local 1339 inet_opt = rcu_dereference_protected(inet->inet_opt, in do_ip_getsockopt() 1342 if (inet_opt) in do_ip_getsockopt() 1343 memcpy(optbuf, &inet_opt->opt, in do_ip_getsockopt() 1345 inet_opt->opt.optlen); in do_ip_getsockopt()
|
D | cipso_ipv4.c | 1878 old = rcu_dereference_protected(sk_inet->inet_opt, in cipso_v4_sock_setattr() 1887 rcu_assign_pointer(sk_inet->inet_opt, opt); in cipso_v4_sock_setattr() 2049 hdr_delta = cipso_v4_delopt(&sk_inet->inet_opt); in cipso_v4_sock_delattr() 2138 opt = rcu_dereference(inet_sk(sk)->inet_opt); in cipso_v4_sock_getattr()
|
D | udp.c | 997 struct ip_options_rcu *inet_opt; in udp_sendmsg() local 1000 inet_opt = rcu_dereference(inet->inet_opt); in udp_sendmsg() 1001 if (inet_opt) { in udp_sendmsg() 1002 memcpy(&opt_copy, inet_opt, in udp_sendmsg() 1003 sizeof(*inet_opt) + inet_opt->opt.optlen); in udp_sendmsg()
|
D | route.c | 554 const struct ip_options_rcu *inet_opt; in build_sk_flow_key() local 558 inet_opt = rcu_dereference(inet->inet_opt); in build_sk_flow_key() 559 if (inet_opt && inet_opt->opt.srr) in build_sk_flow_key() 560 daddr = inet_opt->opt.faddr; in build_sk_flow_key()
|
/Linux-v4.19/net/dccp/ |
D | ipv4.c | 52 struct ip_options_rcu *inet_opt; in dccp_v4_connect() local 64 inet_opt = rcu_dereference_protected(inet->inet_opt, in dccp_v4_connect() 66 if (inet_opt != NULL && inet_opt->opt.srr) { in dccp_v4_connect() 69 nexthop = inet_opt->opt.faddr; in dccp_v4_connect() 87 if (inet_opt == NULL || !inet_opt->opt.srr) in dccp_v4_connect() 97 if (inet_opt) in dccp_v4_connect() 98 inet_csk(sk)->icsk_ext_hdr_len = inet_opt->opt.optlen; in dccp_v4_connect() 417 RCU_INIT_POINTER(newinet->inet_opt, rcu_dereference(ireq->ireq_opt)); in dccp_v4_request_recv_sock() 435 newinet->inet_opt = NULL; in dccp_v4_request_recv_sock() 446 newinet->inet_opt = NULL; in dccp_v4_request_recv_sock()
|
D | ipv6.c | 495 newinet->inet_opt = NULL; in dccp_v6_request_recv_sock()
|
/Linux-v4.19/net/sctp/ |
D | protocol.c | 194 struct ip_options_rcu *inet_opt, *newopt = NULL; in sctp_v4_copy_ip_options() local 199 inet_opt = rcu_dereference(inet->inet_opt); in sctp_v4_copy_ip_options() 200 if (inet_opt) { in sctp_v4_copy_ip_options() 201 newopt = sock_kmalloc(newsk, sizeof(*inet_opt) + in sctp_v4_copy_ip_options() 202 inet_opt->opt.optlen, GFP_ATOMIC); in sctp_v4_copy_ip_options() 204 memcpy(newopt, inet_opt, sizeof(*inet_opt) + in sctp_v4_copy_ip_options() 205 inet_opt->opt.optlen); in sctp_v4_copy_ip_options() 209 RCU_INIT_POINTER(newinet->inet_opt, newopt); in sctp_v4_copy_ip_options() 217 struct ip_options_rcu *inet_opt; in sctp_v4_ip_options_len() local 221 inet_opt = rcu_dereference(inet->inet_opt); in sctp_v4_ip_options_len() [all …]
|
/Linux-v4.19/net/l2tp/ |
D | l2tp_ip.c | 460 const struct ip_options_rcu *inet_opt; in l2tp_ip_sendmsg() local 462 inet_opt = rcu_dereference(inet->inet_opt); in l2tp_ip_sendmsg() 465 if (inet_opt && inet_opt->opt.srr) in l2tp_ip_sendmsg() 466 daddr = inet_opt->opt.faddr; in l2tp_ip_sendmsg()
|
/Linux-v4.19/include/net/ |
D | inet_sock.h | 195 struct ip_options_rcu __rcu *inet_opt; member
|
/Linux-v4.19/net/ipv6/ |
D | tcp_ipv6.c | 1175 newinet->inet_opt = NULL; in tcp_v6_syn_recv_sock()
|
/Linux-v4.19/net/ |
D | socket.c | 3379 opt = rcu_dereference_protected(inet->inet_opt, in kernel_sock_ip_overhead()
|