Home
last modified time | relevance | path

Searched refs:inet_opt (Results 1 – 16 of 16) sorted by relevance

/linux-4.4.14/net/ipv4/
Ddatagram.c105 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()
Dip_output.c384 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()
Daf_inet.c157 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()
Dinet_connection_sock.c454 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()
Dtcp_ipv4.c151 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 …]
Draw.c562 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()
Dip_sockglue.c636 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()
Dping.c757 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()
Dcipso_ipv4.c1936 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()
Dudp.c978 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()
Droute.c538 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/
Dipv4.c52 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()
Dipv6.c481 newinet->inet_opt = NULL; in dccp_v6_request_recv_sock()
/linux-4.4.14/net/l2tp/
Dl2tp_ip.c458 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/
Dinet_sock.h176 struct ip_options_rcu __rcu *inet_opt; member
/linux-4.4.14/net/ipv6/
Dtcp_ipv6.c1086 newinet->inet_opt = NULL; in tcp_v6_syn_recv_sock()