Home
last modified time | relevance | path

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

/linux-6.12.1/net/ipv4/
Ddatagram.c103 const struct ip_options_rcu *inet_opt; in ip4_datagram_release_cb() local
116 inet_opt = rcu_dereference(inet->inet_opt); in ip4_datagram_release_cb()
117 if (inet_opt && inet_opt->opt.srr) in ip4_datagram_release_cb()
118 daddr = inet_opt->opt.faddr; in ip4_datagram_release_cb()
Dip_output.c462 struct ip_options_rcu *inet_opt; in __ip_queue_xmit() local
472 inet_opt = rcu_dereference(inet->inet_opt); in __ip_queue_xmit()
485 if (inet_opt && inet_opt->opt.srr) in __ip_queue_xmit()
486 daddr = inet_opt->opt.faddr; in __ip_queue_xmit()
506 if (inet_opt && inet_opt->opt.is_strictroute && rt->rt_uses_gateway) in __ip_queue_xmit()
510 skb_push(skb, sizeof(struct iphdr) + (inet_opt ? inet_opt->opt.optlen : 0)); in __ip_queue_xmit()
524 if (inet_opt && inet_opt->opt.optlen) { in __ip_queue_xmit()
525 iph->ihl += inet_opt->opt.optlen >> 2; in __ip_queue_xmit()
526 ip_options_build(skb, &inet_opt->opt, inet->inet_daddr, rt); in __ip_queue_xmit()
Daf_inet.c158 kfree(rcu_dereference_protected(inet->inet_opt, 1)); in inet_sock_destruct()
1263 struct ip_options_rcu *inet_opt; in inet_sk_reselect_saddr() local
1266 inet_opt = rcu_dereference_protected(inet->inet_opt, in inet_sk_reselect_saddr()
1268 if (inet_opt && inet_opt->opt.srr) in inet_sk_reselect_saddr()
1269 daddr = inet_opt->opt.faddr; in inet_sk_reselect_saddr()
1315 struct ip_options_rcu *inet_opt; in inet_sk_rebuild_header() local
1325 inet_opt = rcu_dereference(inet->inet_opt); in inet_sk_rebuild_header()
1327 if (inet_opt && inet_opt->opt.srr) in inet_sk_rebuild_header()
1328 daddr = inet_opt->opt.faddr; in inet_sk_rebuild_header()
Draw.c559 struct ip_options_rcu *inet_opt; in raw_sendmsg() local
562 inet_opt = rcu_dereference(inet->inet_opt); in raw_sendmsg()
563 if (inet_opt) { in raw_sendmsg()
564 memcpy(&opt_copy, inet_opt, in raw_sendmsg()
565 sizeof(*inet_opt) + inet_opt->opt.optlen); in raw_sendmsg()
Dping.c749 struct ip_options_rcu *inet_opt; in ping_v4_sendmsg() local
752 inet_opt = rcu_dereference(inet->inet_opt); in ping_v4_sendmsg()
753 if (inet_opt) { in ping_v4_sendmsg()
754 memcpy(&opt_copy, inet_opt, in ping_v4_sendmsg()
755 sizeof(*inet_opt) + inet_opt->opt.optlen); in ping_v4_sendmsg()
Dtcp_ipv4.c224 struct ip_options_rcu *inet_opt; in tcp_v4_connect() local
239 inet_opt = rcu_dereference_protected(inet->inet_opt, in tcp_v4_connect()
241 if (inet_opt && inet_opt->opt.srr) { in tcp_v4_connect()
244 nexthop = inet_opt->opt.faddr; in tcp_v4_connect()
265 if (!inet_opt || !inet_opt->opt.srr) in tcp_v4_connect()
292 if (inet_opt) in tcp_v4_connect()
293 inet_csk(sk)->icsk_ext_hdr_len = inet_opt->opt.optlen; in tcp_v4_connect()
1755 struct ip_options_rcu *inet_opt; local
1774 inet_opt = rcu_dereference(ireq->ireq_opt);
1775 RCU_INIT_POINTER(newinet->inet_opt, inet_opt);
[all …]
Dip_sockglue.c1090 old = rcu_dereference_protected(inet->inet_opt, in do_ip_setsockopt()
1109 rcu_assign_pointer(inet->inet_opt, opt); in do_ip_setsockopt()
1606 struct ip_options_rcu *inet_opt; in do_ip_getsockopt() local
1609 inet_opt = rcu_dereference(inet->inet_opt); in do_ip_getsockopt()
1611 if (inet_opt) in do_ip_getsockopt()
1612 memcpy(optbuf, &inet_opt->opt, in do_ip_getsockopt()
1614 inet_opt->opt.optlen); in do_ip_getsockopt()
Dinet_connection_sock.c1562 const struct ip_options_rcu *inet_opt; in inet_csk_rebuild_route() local
1568 inet_opt = rcu_dereference(inet->inet_opt); in inet_csk_rebuild_route()
1569 if (inet_opt && inet_opt->opt.srr) in inet_csk_rebuild_route()
1570 daddr = inet_opt->opt.faddr; in inet_csk_rebuild_route()
Dcipso_ipv4.c1904 old = rcu_dereference_protected(sk_inet->inet_opt, sk_locked); in cipso_v4_sock_setattr()
1912 rcu_assign_pointer(sk_inet->inet_opt, opt); in cipso_v4_sock_setattr()
2062 hdr_delta = cipso_v4_delopt(&sk_inet->inet_opt); in cipso_v4_sock_delattr()
2151 opt = rcu_dereference(inet_sk(sk)->inet_opt); in cipso_v4_sock_getattr()
Dudp.c1155 struct ip_options_rcu *inet_opt; in udp_sendmsg() local
1158 inet_opt = rcu_dereference(inet->inet_opt); in udp_sendmsg()
1159 if (inet_opt) { in udp_sendmsg()
1160 memcpy(&opt_copy, inet_opt, in udp_sendmsg()
1161 sizeof(*inet_opt) + inet_opt->opt.optlen); in udp_sendmsg()
Droute.c536 const struct ip_options_rcu *inet_opt; in build_sk_flow_key() local
540 inet_opt = rcu_dereference(inet->inet_opt); in build_sk_flow_key()
541 if (inet_opt && inet_opt->opt.srr) in build_sk_flow_key()
542 daddr = inet_opt->opt.faddr; in build_sk_flow_key()
/linux-6.12.1/net/dccp/
Dipv4.c56 struct ip_options_rcu *inet_opt; in dccp_v4_connect() local
68 inet_opt = rcu_dereference_protected(inet->inet_opt, in dccp_v4_connect()
70 if (inet_opt != NULL && inet_opt->opt.srr) { in dccp_v4_connect()
73 nexthop = inet_opt->opt.faddr; in dccp_v4_connect()
90 if (inet_opt == NULL || !inet_opt->opt.srr) in dccp_v4_connect()
107 if (inet_opt) in dccp_v4_connect()
108 inet_csk(sk)->icsk_ext_hdr_len = inet_opt->opt.optlen; in dccp_v4_connect()
431 RCU_INIT_POINTER(newinet->inet_opt, rcu_dereference(ireq->ireq_opt)); in dccp_v4_request_recv_sock()
449 newinet->inet_opt = NULL; in dccp_v4_request_recv_sock()
460 newinet->inet_opt = NULL; in dccp_v4_request_recv_sock()
Dipv6.c516 newinet->inet_opt = NULL; in dccp_v6_request_recv_sock()
/linux-6.12.1/net/sctp/
Dprotocol.c180 struct ip_options_rcu *inet_opt, *newopt = NULL; in sctp_v4_copy_ip_options() local
185 inet_opt = rcu_dereference(inet->inet_opt); in sctp_v4_copy_ip_options()
186 if (inet_opt) { in sctp_v4_copy_ip_options()
187 newopt = sock_kmalloc(newsk, sizeof(*inet_opt) + in sctp_v4_copy_ip_options()
188 inet_opt->opt.optlen, GFP_ATOMIC); in sctp_v4_copy_ip_options()
190 memcpy(newopt, inet_opt, sizeof(*inet_opt) + in sctp_v4_copy_ip_options()
191 inet_opt->opt.optlen); in sctp_v4_copy_ip_options()
195 RCU_INIT_POINTER(newinet->inet_opt, newopt); in sctp_v4_copy_ip_options()
203 struct ip_options_rcu *inet_opt; in sctp_v4_ip_options_len() local
207 inet_opt = rcu_dereference(inet->inet_opt); in sctp_v4_ip_options_len()
[all …]
/linux-6.12.1/net/l2tp/
Dl2tp_ip.c491 const struct ip_options_rcu *inet_opt; in l2tp_ip_sendmsg() local
493 inet_opt = rcu_dereference(inet->inet_opt); in l2tp_ip_sendmsg()
496 if (inet_opt && inet_opt->opt.srr) in l2tp_ip_sendmsg()
497 daddr = inet_opt->opt.faddr; in l2tp_ip_sendmsg()
/linux-6.12.1/Documentation/networking/net_cachelines/
Dinet_sock.rst20 struct_ip_options_rcu* inet_opt read_mostly - __ip_queue_xm…
/linux-6.12.1/net/mptcp/
Dprotocol.c3278 struct ip_options_rcu *inet_opt, *newopt = NULL; in mptcp_copy_ip_options() local
3285 inet_opt = rcu_dereference(inet->inet_opt); in mptcp_copy_ip_options()
3286 if (inet_opt) { in mptcp_copy_ip_options()
3287 newopt = sock_kmalloc(newsk, sizeof(*inet_opt) + in mptcp_copy_ip_options()
3288 inet_opt->opt.optlen, GFP_ATOMIC); in mptcp_copy_ip_options()
3290 memcpy(newopt, inet_opt, sizeof(*inet_opt) + in mptcp_copy_ip_options()
3291 inet_opt->opt.optlen); in mptcp_copy_ip_options()
3295 RCU_INIT_POINTER(newinet->inet_opt, newopt); in mptcp_copy_ip_options()
/linux-6.12.1/include/net/
Dinet_sock.h226 struct ip_options_rcu __rcu *inet_opt; member
/linux-6.12.1/net/ipv6/
Dtcp_ipv6.c1460 newinet->inet_opt = NULL;
/linux-6.12.1/drivers/net/ethernet/chelsio/inline_crypto/chtls/
Dchtls_cm.c1208 newinet->inet_opt = NULL; in chtls_recv_sock()
/linux-6.12.1/net/
Dsocket.c3728 opt = rcu_dereference_protected(inet->inet_opt, in kernel_sock_ip_overhead()