Home
last modified time | relevance | path

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

/net/ipv4/
Ddatagram.c92 const struct ip_options_rcu *inet_opt; in ip4_datagram_release_cb() local
101 inet_opt = rcu_dereference(inet->inet_opt); in ip4_datagram_release_cb()
102 if (inet_opt && inet_opt->opt.srr) in ip4_datagram_release_cb()
103 daddr = inet_opt->opt.faddr; in ip4_datagram_release_cb()
Dip_output.c330 struct ip_options_rcu *inet_opt; in ip_queue_xmit() local
340 inet_opt = rcu_dereference(inet->inet_opt); in ip_queue_xmit()
353 if (inet_opt && inet_opt->opt.srr) in ip_queue_xmit()
354 daddr = inet_opt->opt.faddr; in ip_queue_xmit()
374 if (inet_opt && inet_opt->opt.is_strictroute && rt->rt_uses_gateway) in ip_queue_xmit()
378 skb_push(skb, sizeof(struct iphdr) + (inet_opt ? inet_opt->opt.optlen : 0)); in ip_queue_xmit()
392 if (inet_opt && inet_opt->opt.optlen) { in ip_queue_xmit()
393 iph->ihl += inet_opt->opt.optlen >> 2; in ip_queue_xmit()
394 ip_options_build(skb, &inet_opt->opt, inet->inet_daddr, rt, 0); in ip_queue_xmit()
Daf_inet.c172 kfree(rcu_dereference_protected(inet->inet_opt, 1)); in inet_sock_destruct()
1174 struct ip_options_rcu *inet_opt; in inet_sk_reselect_saddr() local
1176 inet_opt = rcu_dereference_protected(inet->inet_opt, in inet_sk_reselect_saddr()
1178 if (inet_opt && inet_opt->opt.srr) in inet_sk_reselect_saddr()
1179 daddr = inet_opt->opt.faddr; in inet_sk_reselect_saddr()
1220 struct ip_options_rcu *inet_opt; in inet_sk_rebuild_header() local
1230 inet_opt = rcu_dereference(inet->inet_opt); in inet_sk_rebuild_header()
1232 if (inet_opt && inet_opt->opt.srr) in inet_sk_rebuild_header()
1233 daddr = inet_opt->opt.faddr; in inet_sk_rebuild_header()
Dinet_connection_sock.c457 opt = rcu_dereference(newinet->inet_opt); in inet_csk_route_child_sock()
912 const struct ip_options_rcu *inet_opt; in inet_csk_rebuild_route() local
918 inet_opt = rcu_dereference(inet->inet_opt); in inet_csk_rebuild_route()
919 if (inet_opt && inet_opt->opt.srr) in inet_csk_rebuild_route()
920 daddr = inet_opt->opt.faddr; in inet_csk_rebuild_route()
Draw.c534 struct ip_options_rcu *inet_opt; in raw_sendmsg() local
537 inet_opt = rcu_dereference(inet->inet_opt); in raw_sendmsg()
538 if (inet_opt) { in raw_sendmsg()
539 memcpy(&opt_copy, inet_opt, in raw_sendmsg()
540 sizeof(*inet_opt) + inet_opt->opt.optlen); in raw_sendmsg()
Dip_sockglue.c514 old = rcu_dereference_protected(inet->inet_opt, in do_ip_setsockopt()
533 rcu_assign_pointer(inet->inet_opt, opt); in do_ip_setsockopt()
1144 struct ip_options_rcu *inet_opt; in do_ip_getsockopt() local
1146 inet_opt = rcu_dereference_protected(inet->inet_opt, in do_ip_getsockopt()
1149 if (inet_opt) in do_ip_getsockopt()
1150 memcpy(optbuf, &inet_opt->opt, in do_ip_getsockopt()
1152 inet_opt->opt.optlen); in do_ip_getsockopt()
Dtcp_ipv4.c152 struct ip_options_rcu *inet_opt; in tcp_v4_connect() local
161 inet_opt = rcu_dereference_protected(inet->inet_opt, in tcp_v4_connect()
163 if (inet_opt && inet_opt->opt.srr) { in tcp_v4_connect()
166 nexthop = inet_opt->opt.faddr; in tcp_v4_connect()
188 if (!inet_opt || !inet_opt->opt.srr) in tcp_v4_connect()
211 if (inet_opt) in tcp_v4_connect()
212 inet_csk(sk)->icsk_ext_hdr_len = inet_opt->opt.optlen; in tcp_v4_connect()
1659 struct ip_options_rcu *inet_opt; in tcp_v4_syn_recv_sock() local
1677 inet_opt = ireq->opt; in tcp_v4_syn_recv_sock()
1678 rcu_assign_pointer(newinet->inet_opt, inet_opt); in tcp_v4_syn_recv_sock()
[all …]
Dping.c748 struct ip_options_rcu *inet_opt; in ping_v4_sendmsg() local
751 inet_opt = rcu_dereference(inet->inet_opt); in ping_v4_sendmsg()
752 if (inet_opt) { in ping_v4_sendmsg()
753 memcpy(&opt_copy, inet_opt, in ping_v4_sendmsg()
754 sizeof(*inet_opt) + inet_opt->opt.optlen); in ping_v4_sendmsg()
Dcipso_ipv4.c1928 old = rcu_dereference_protected(sk_inet->inet_opt, sock_owned_by_user(sk)); in cipso_v4_sock_setattr()
1936 rcu_assign_pointer(sk_inet->inet_opt, opt); in cipso_v4_sock_setattr()
2096 opt = rcu_dereference_protected(sk_inet->inet_opt, 1); in cipso_v4_sock_delattr()
2100 hdr_delta = cipso_v4_delopt(&sk_inet->inet_opt); in cipso_v4_sock_delattr()
2197 opt = rcu_dereference(inet_sk(sk)->inet_opt); in cipso_v4_sock_getattr()
Dudp.c917 struct ip_options_rcu *inet_opt; in udp_sendmsg() local
920 inet_opt = rcu_dereference(inet->inet_opt); in udp_sendmsg()
921 if (inet_opt) { in udp_sendmsg()
922 memcpy(&opt_copy, inet_opt, in udp_sendmsg()
923 sizeof(*inet_opt) + inet_opt->opt.optlen); in udp_sendmsg()
Droute.c540 const struct ip_options_rcu *inet_opt; in build_sk_flow_key() local
544 inet_opt = rcu_dereference(inet->inet_opt); in build_sk_flow_key()
545 if (inet_opt && inet_opt->opt.srr) in build_sk_flow_key()
546 daddr = inet_opt->opt.faddr; in build_sk_flow_key()
/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()
98 if (inet_opt) in dccp_v4_connect()
99 inet_csk(sk)->icsk_ext_hdr_len = inet_opt->opt.optlen; in dccp_v4_connect()
415 newinet->inet_opt = ireq->opt; in dccp_v4_request_recv_sock()
Dipv6.c558 newinet->inet_opt = NULL; in dccp_v6_request_recv_sock()
/net/l2tp/
Dl2tp_ip.c457 const struct ip_options_rcu *inet_opt; in l2tp_ip_sendmsg() local
459 inet_opt = rcu_dereference(inet->inet_opt); in l2tp_ip_sendmsg()
462 if (inet_opt && inet_opt->opt.srr) in l2tp_ip_sendmsg()
463 daddr = inet_opt->opt.faddr; in l2tp_ip_sendmsg()
/net/ipv6/
Dtcp_ipv6.c1207 newinet->inet_opt = NULL; in tcp_v6_syn_recv_sock()