| /linux-4.4.14/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 | 384 struct ip_options_rcu *inet_opt; in ip_queue_xmit() local 394 inet_opt = rcu_dereference(inet->inet_opt); in ip_queue_xmit() 407 if (inet_opt && inet_opt->opt.srr) in ip_queue_xmit() 408 daddr = inet_opt->opt.faddr; in ip_queue_xmit() 428 if (inet_opt && inet_opt->opt.is_strictroute && rt->rt_uses_gateway) in ip_queue_xmit() 432 skb_push(skb, sizeof(struct iphdr) + (inet_opt ? inet_opt->opt.optlen : 0)); in ip_queue_xmit() 446 if (inet_opt && inet_opt->opt.optlen) { in ip_queue_xmit() 447 iph->ihl += inet_opt->opt.optlen >> 2; in ip_queue_xmit() 448 ip_options_build(skb, &inet_opt->opt, inet->inet_daddr, rt, 0); in ip_queue_xmit()
|
| D | af_inet.c | 157 kfree(rcu_dereference_protected(inet->inet_opt, 1)); in inet_sock_destruct() 1108 struct ip_options_rcu *inet_opt; in inet_sk_reselect_saddr() local 1110 inet_opt = rcu_dereference_protected(inet->inet_opt, in inet_sk_reselect_saddr() 1112 if (inet_opt && inet_opt->opt.srr) in inet_sk_reselect_saddr() 1113 daddr = inet_opt->opt.faddr; in inet_sk_reselect_saddr() 1154 struct ip_options_rcu *inet_opt; in inet_sk_rebuild_header() local 1164 inet_opt = rcu_dereference(inet->inet_opt); in inet_sk_rebuild_header() 1166 if (inet_opt && inet_opt->opt.srr) in inet_sk_rebuild_header() 1167 daddr = inet_opt->opt.faddr; in inet_sk_rebuild_header()
|
| D | inet_connection_sock.c | 454 opt = rcu_dereference(newinet->inet_opt); in inet_csk_route_child_sock() 924 const struct ip_options_rcu *inet_opt; in inet_csk_rebuild_route() local 930 inet_opt = rcu_dereference(inet->inet_opt); in inet_csk_rebuild_route() 931 if (inet_opt && inet_opt->opt.srr) in inet_csk_rebuild_route() 932 daddr = inet_opt->opt.faddr; in inet_csk_rebuild_route()
|
| D | tcp_ipv4.c | 151 struct ip_options_rcu *inet_opt; in tcp_v4_connect() local 160 inet_opt = rcu_dereference_protected(inet->inet_opt, in tcp_v4_connect() 162 if (inet_opt && inet_opt->opt.srr) { in tcp_v4_connect() 165 nexthop = inet_opt->opt.faddr; in tcp_v4_connect() 187 if (!inet_opt || !inet_opt->opt.srr) in tcp_v4_connect() 210 if (inet_opt) in tcp_v4_connect() 211 inet_csk(sk)->icsk_ext_hdr_len = inet_opt->opt.optlen; in tcp_v4_connect() 1268 struct ip_options_rcu *inet_opt; in tcp_v4_syn_recv_sock() local 1286 inet_opt = ireq->opt; in tcp_v4_syn_recv_sock() 1287 rcu_assign_pointer(newinet->inet_opt, inet_opt); in tcp_v4_syn_recv_sock() [all …]
|
| D | raw.c | 562 struct ip_options_rcu *inet_opt; in raw_sendmsg() local 565 inet_opt = rcu_dereference(inet->inet_opt); in raw_sendmsg() 566 if (inet_opt) { in raw_sendmsg() 567 memcpy(&opt_copy, inet_opt, in raw_sendmsg() 568 sizeof(*inet_opt) + inet_opt->opt.optlen); in raw_sendmsg()
|
| D | ip_sockglue.c | 636 old = rcu_dereference_protected(inet->inet_opt, in do_ip_setsockopt() 655 rcu_assign_pointer(inet->inet_opt, opt); in do_ip_setsockopt() 1294 struct ip_options_rcu *inet_opt; in do_ip_getsockopt() local 1296 inet_opt = rcu_dereference_protected(inet->inet_opt, in do_ip_getsockopt() 1299 if (inet_opt) in do_ip_getsockopt() 1300 memcpy(optbuf, &inet_opt->opt, in do_ip_getsockopt() 1302 inet_opt->opt.optlen); in do_ip_getsockopt()
|
| D | ping.c | 757 struct ip_options_rcu *inet_opt; in ping_v4_sendmsg() local 760 inet_opt = rcu_dereference(inet->inet_opt); in ping_v4_sendmsg() 761 if (inet_opt) { in ping_v4_sendmsg() 762 memcpy(&opt_copy, inet_opt, in ping_v4_sendmsg() 763 sizeof(*inet_opt) + inet_opt->opt.optlen); in ping_v4_sendmsg()
|
| D | cipso_ipv4.c | 1936 old = rcu_dereference_protected(sk_inet->inet_opt, sock_owned_by_user(sk)); in cipso_v4_sock_setattr() 1944 rcu_assign_pointer(sk_inet->inet_opt, opt); in cipso_v4_sock_setattr() 2104 opt = rcu_dereference_protected(sk_inet->inet_opt, 1); in cipso_v4_sock_delattr() 2108 hdr_delta = cipso_v4_delopt(&sk_inet->inet_opt); in cipso_v4_sock_delattr() 2205 opt = rcu_dereference(inet_sk(sk)->inet_opt); in cipso_v4_sock_getattr()
|
| D | udp.c | 978 struct ip_options_rcu *inet_opt; in udp_sendmsg() local 981 inet_opt = rcu_dereference(inet->inet_opt); in udp_sendmsg() 982 if (inet_opt) { in udp_sendmsg() 983 memcpy(&opt_copy, inet_opt, in udp_sendmsg() 984 sizeof(*inet_opt) + inet_opt->opt.optlen); in udp_sendmsg()
|
| D | route.c | 538 const struct ip_options_rcu *inet_opt; in build_sk_flow_key() local 542 inet_opt = rcu_dereference(inet->inet_opt); in build_sk_flow_key() 543 if (inet_opt && inet_opt->opt.srr) in build_sk_flow_key() 544 daddr = inet_opt->opt.faddr; in build_sk_flow_key()
|
| /linux-4.4.14/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() 414 newinet->inet_opt = ireq->opt; in dccp_v4_request_recv_sock()
|
| D | ipv6.c | 481 newinet->inet_opt = NULL; in dccp_v6_request_recv_sock()
|
| /linux-4.4.14/net/l2tp/ |
| D | l2tp_ip.c | 458 const struct ip_options_rcu *inet_opt; in l2tp_ip_sendmsg() local 460 inet_opt = rcu_dereference(inet->inet_opt); in l2tp_ip_sendmsg() 463 if (inet_opt && inet_opt->opt.srr) in l2tp_ip_sendmsg() 464 daddr = inet_opt->opt.faddr; in l2tp_ip_sendmsg()
|
| /linux-4.4.14/include/net/ |
| D | inet_sock.h | 176 struct ip_options_rcu __rcu *inet_opt; member
|
| /linux-4.4.14/net/ipv6/ |
| D | tcp_ipv6.c | 1086 newinet->inet_opt = NULL; in tcp_v6_syn_recv_sock()
|