Home
last modified time | relevance | path

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

/linux/net/ipv4/
A Ddatagram.c102 const struct ip_options_rcu *inet_opt; in ip4_datagram_release_cb() local
115 inet_opt = rcu_dereference(inet->inet_opt); in ip4_datagram_release_cb()
116 if (inet_opt && inet_opt->opt.srr) in ip4_datagram_release_cb()
117 daddr = inet_opt->opt.faddr; in ip4_datagram_release_cb()
A Dip_output.c451 struct ip_options_rcu *inet_opt; in __ip_queue_xmit() local
461 inet_opt = rcu_dereference(inet->inet_opt); in __ip_queue_xmit()
474 if (inet_opt && inet_opt->opt.srr) in __ip_queue_xmit()
475 daddr = inet_opt->opt.faddr; in __ip_queue_xmit()
495 if (inet_opt && inet_opt->opt.is_strictroute && rt->rt_uses_gateway) in __ip_queue_xmit()
499 skb_push(skb, sizeof(struct iphdr) + (inet_opt ? inet_opt->opt.optlen : 0)); in __ip_queue_xmit()
513 if (inet_opt && inet_opt->opt.optlen) { in __ip_queue_xmit()
514 iph->ihl += inet_opt->opt.optlen >> 2; in __ip_queue_xmit()
515 ip_options_build(skb, &inet_opt->opt, inet->inet_daddr, rt, 0); in __ip_queue_xmit()
A Daf_inet.c155 kfree(rcu_dereference_protected(inet->inet_opt, 1)); in inet_sock_destruct()
1228 struct ip_options_rcu *inet_opt; in inet_sk_reselect_saddr() local
1230 inet_opt = rcu_dereference_protected(inet->inet_opt, in inet_sk_reselect_saddr()
1232 if (inet_opt && inet_opt->opt.srr) in inet_sk_reselect_saddr()
1233 daddr = inet_opt->opt.faddr; in inet_sk_reselect_saddr()
1273 struct ip_options_rcu *inet_opt; in inet_sk_rebuild_header() local
1283 inet_opt = rcu_dereference(inet->inet_opt); in inet_sk_rebuild_header()
1285 if (inet_opt && inet_opt->opt.srr) in inet_sk_rebuild_header()
1286 daddr = inet_opt->opt.faddr; in inet_sk_rebuild_header()
A Draw.c577 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()
A Dtcp_ipv4.c208 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()
1558 struct ip_options_rcu *inet_opt; in tcp_v4_syn_recv_sock() local
1578 RCU_INIT_POINTER(newinet->inet_opt, inet_opt); in tcp_v4_syn_recv_sock()
1583 if (inet_opt) in tcp_v4_syn_recv_sock()
1635 newinet->inet_opt = NULL; in tcp_v4_syn_recv_sock()
[all …]
A Dping.c738 struct ip_options_rcu *inet_opt; in ping_v4_sendmsg() local
741 inet_opt = rcu_dereference(inet->inet_opt); in ping_v4_sendmsg()
742 if (inet_opt) { in ping_v4_sendmsg()
743 memcpy(&opt_copy, inet_opt, in ping_v4_sendmsg()
744 sizeof(*inet_opt) + inet_opt->opt.optlen); in ping_v4_sendmsg()
A Dip_sockglue.c959 old = rcu_dereference_protected(inet->inet_opt, in do_ip_setsockopt()
978 rcu_assign_pointer(inet->inet_opt, opt); in do_ip_setsockopt()
1552 struct ip_options_rcu *inet_opt; in do_ip_getsockopt() local
1554 inet_opt = rcu_dereference_protected(inet->inet_opt, in do_ip_getsockopt()
1557 if (inet_opt) in do_ip_getsockopt()
1558 memcpy(optbuf, &inet_opt->opt, in do_ip_getsockopt()
1560 inet_opt->opt.optlen); in do_ip_getsockopt()
A Dinet_connection_sock.c1255 const struct ip_options_rcu *inet_opt; in inet_csk_rebuild_route() local
1261 inet_opt = rcu_dereference(inet->inet_opt); in inet_csk_rebuild_route()
1262 if (inet_opt && inet_opt->opt.srr) in inet_csk_rebuild_route()
1263 daddr = inet_opt->opt.faddr; in inet_csk_rebuild_route()
A Dcipso_ipv4.c1880 old = rcu_dereference_protected(sk_inet->inet_opt, in cipso_v4_sock_setattr()
1889 rcu_assign_pointer(sk_inet->inet_opt, opt); in cipso_v4_sock_setattr()
2051 hdr_delta = cipso_v4_delopt(&sk_inet->inet_opt); in cipso_v4_sock_delattr()
2140 opt = rcu_dereference(inet_sk(sk)->inet_opt); in cipso_v4_sock_getattr()
A Dudp.c1134 struct ip_options_rcu *inet_opt; in udp_sendmsg() local
1137 inet_opt = rcu_dereference(inet->inet_opt); in udp_sendmsg()
1138 if (inet_opt) { in udp_sendmsg()
1139 memcpy(&opt_copy, inet_opt, in udp_sendmsg()
1140 sizeof(*inet_opt) + inet_opt->opt.optlen); in udp_sendmsg()
A 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/net/dccp/
A Dipv4.c55 struct ip_options_rcu *inet_opt; in dccp_v4_connect() local
67 inet_opt = rcu_dereference_protected(inet->inet_opt, in dccp_v4_connect()
69 if (inet_opt != NULL && inet_opt->opt.srr) { in dccp_v4_connect()
72 nexthop = inet_opt->opt.faddr; in dccp_v4_connect()
90 if (inet_opt == NULL || !inet_opt->opt.srr) in dccp_v4_connect()
100 if (inet_opt) in dccp_v4_connect()
101 inet_csk(sk)->icsk_ext_hdr_len = inet_opt->opt.optlen; in dccp_v4_connect()
423 RCU_INIT_POINTER(newinet->inet_opt, rcu_dereference(ireq->ireq_opt)); in dccp_v4_request_recv_sock()
441 newinet->inet_opt = NULL; in dccp_v4_request_recv_sock()
452 newinet->inet_opt = NULL; in dccp_v4_request_recv_sock()
A Dipv6.c510 newinet->inet_opt = NULL; in dccp_v6_request_recv_sock()
/linux/net/sctp/
A Dprotocol.c179 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()
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()
207 if (inet_opt) in sctp_v4_ip_options_len()
[all …]
/linux/net/l2tp/
A Dl2tp_ip.c464 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()
/linux/include/net/
A Dinet_sock.h210 struct ip_options_rcu __rcu *inet_opt; member
/linux/net/ipv6/
A Dtcp_ipv6.c1349 newinet->inet_opt = NULL; in tcp_v6_syn_recv_sock()
/linux/drivers/net/ethernet/chelsio/inline_crypto/chtls/
A Dchtls_cm.c1209 newinet->inet_opt = NULL; in chtls_recv_sock()
/linux/net/
A Dsocket.c3576 opt = rcu_dereference_protected(inet->inet_opt, in kernel_sock_ip_overhead()

Completed in 64 milliseconds