| /linux/net/sctp/ |
| H A D | protocol.c | 182 struct ip_options_rcu *inet_opt, *newopt = NULL; in sctp_v4_copy_ip_options() local 187 inet_opt = rcu_dereference(inet->inet_opt); in sctp_v4_copy_ip_options() 188 if (inet_opt) { in sctp_v4_copy_ip_options() 189 newopt = sock_kmemdup(newsk, inet_opt, sizeof(*inet_opt) + in sctp_v4_copy_ip_options() 190 inet_opt->opt.optlen, GFP_ATOMIC); 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() 208 len = inet_opt->opt.optlen; in sctp_v4_ip_options_len()
|
| H A D | ipv6.c | 495 inet_sk(newsk)->inet_opt = NULL; in sctp_v6_copy_ip_options()
|
| /linux/net/ipv4/ |
| H A D | ip_output.c | 468 struct ip_options_rcu *inet_opt; in __ip_queue_xmit() local 478 inet_opt = rcu_dereference(inet->inet_opt); in __ip_queue_xmit() 504 if (inet_opt && inet_opt->opt.is_strictroute && rt->rt_uses_gateway) in __ip_queue_xmit() 508 skb_push(skb, sizeof(struct iphdr) + (inet_opt ? inet_opt->opt.optlen : 0)); in __ip_queue_xmit() 522 if (inet_opt && inet_opt->opt.optlen) { in __ip_queue_xmit() 523 iph->ihl += inet_opt->opt.optlen >> 2; in __ip_queue_xmit() 524 ip_options_build(skb, &inet_opt->opt, inet->inet_daddr, rt); in __ip_queue_xmit()
|
| H A D | raw.c | 560 struct ip_options_rcu *inet_opt; in raw_sendmsg() local 563 inet_opt = rcu_dereference(inet->inet_opt); in raw_sendmsg() 564 if (inet_opt) { in raw_sendmsg() 565 memcpy(opt_copy, inet_opt, in raw_sendmsg() 566 sizeof(*inet_opt) + inet_opt->opt.optlen); in raw_sendmsg()
|
| H A D | ping.c | 751 struct ip_options_rcu *inet_opt; in ping_v4_sendmsg() local 754 inet_opt = rcu_dereference(inet->inet_opt); in ping_v4_sendmsg() 755 if (inet_opt) { in ping_v4_sendmsg() 756 memcpy(opt_copy, inet_opt, in ping_v4_sendmsg() 757 sizeof(*inet_opt) + inet_opt->opt.optlen); in ping_v4_sendmsg()
|
| H A D | tcp_ipv4.c | 228 struct ip_options_rcu *inet_opt; in tcp_v4_connect() local 243 inet_opt = rcu_dereference_protected(inet->inet_opt, in tcp_v4_connect() 245 if (inet_opt && inet_opt->opt.srr) { in tcp_v4_connect() 248 nexthop = inet_opt->opt.faddr; in tcp_v4_connect() 269 if (!inet_opt || !inet_opt->opt.srr) in tcp_v4_connect() 296 if (inet_opt) in tcp_v4_connect() 297 inet_csk(sk)->icsk_ext_hdr_len += inet_opt->opt.optlen; in tcp_v4_connect() 1720 struct ip_options_rcu *inet_opt; local 1735 inet_opt = rcu_dereference(ireq->ireq_opt); 1736 RCU_INIT_POINTER(newinet->inet_opt, inet_opt); [all …]
|
| H A D | ip_sockglue.c | 1090 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()
|
| H A D | af_inet.c | 165 kfree(rcu_dereference_protected(inet->inet_opt, 1)); in inet_sock_destruct() 1275 struct ip_options_rcu *inet_opt; in inet_sk_reselect_saddr() local 1278 inet_opt = rcu_dereference_protected(inet->inet_opt, in inet_sk_reselect_saddr() 1280 if (inet_opt && inet_opt->opt.srr) in inet_sk_reselect_saddr() 1281 daddr = inet_opt->opt.faddr; in inet_sk_reselect_saddr()
|
| H A D | cipso_ipv4.c | 1902 old = rcu_dereference_protected(sk_inet->inet_opt, sk_locked); in cipso_v4_sock_setattr() 1910 rcu_assign_pointer(sk_inet->inet_opt, opt); in cipso_v4_sock_setattr() 2060 hdr_delta = cipso_v4_delopt(&sk_inet->inet_opt); in cipso_v4_sock_delattr() 2149 opt = rcu_dereference(inet_sk(sk)->inet_opt); in cipso_v4_sock_getattr()
|
| H A D | udp.c | 1367 struct ip_options_rcu *inet_opt; in udp_sendmsg() local 1370 inet_opt = rcu_dereference(inet->inet_opt); in udp_sendmsg() 1371 if (inet_opt) { in udp_sendmsg() 1372 memcpy(opt_copy, inet_opt, in udp_sendmsg() 1373 sizeof(*inet_opt) + inet_opt->opt.optlen); in udp_sendmsg()
|
| H A D | route.c | 547 const struct ip_options_rcu *inet_opt; in build_sk_flow_key() local 551 inet_opt = rcu_dereference(inet->inet_opt); in build_sk_flow_key() 552 if (inet_opt && inet_opt->opt.srr) in build_sk_flow_key() 553 daddr = inet_opt->opt.faddr; in build_sk_flow_key()
|
| /linux/Documentation/networking/net_cachelines/ |
| H A D | inet_sock.rst | 22 struct ip_options_rcu* inet_opt read_mostly __ip_queue_x…
|
| /linux/include/net/ |
| H A D | inet_sock.h | 235 struct ip_options_rcu __rcu *inet_opt; member
|
| H A D | route.h | 142 ip4_opt = rcu_dereference(inet->inet_opt); in inet_sk_init_flowi4()
|
| /linux/net/mptcp/ |
| H A D | protocol.c | 3487 struct ip_options_rcu *inet_opt, *newopt = NULL; in mptcp_copy_ip_options() 3494 inet_opt = rcu_dereference(inet->inet_opt); in mptcp_copy_ip_options() 3495 if (inet_opt) { in mptcp_copy_ip_options() 3496 newopt = sock_kmemdup(newsk, inet_opt, sizeof(*inet_opt) + in mptcp_copy_ip_options() 3497 inet_opt->opt.optlen, GFP_ATOMIC); in mptcp_copy_ip_options() 3501 RCU_INIT_POINTER(newinet->inet_opt, newopt); in mptcp_sk_clone_init() 3482 struct ip_options_rcu *inet_opt, *newopt = NULL; mptcp_copy_ip_options() local
|
| /linux/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
| H A D | chtls_cm.c | 1210 newinet->inet_opt = NULL; in chtls_recv_sock()
|
| /linux/net/ipv6/ |
| H A D | tcp_ipv6.c | 1400 newinet->inet_opt = NULL;
|
| /linux/net/ |
| H A D | socket.c | 3710 opt = rcu_dereference_protected(inet->inet_opt, in kernel_sock_ip_overhead()
|