Home
last modified time | relevance | path

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

/linux/net/sctp/
H A Dprotocol.c182 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 Dipv6.c495 inet_sk(newsk)->inet_opt = NULL; in sctp_v6_copy_ip_options()
/linux/net/ipv4/
H A Dip_output.c468 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 Draw.c560 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 Dping.c751 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 Dtcp_ipv4.c228 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 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()
H A Daf_inet.c165 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 Dcipso_ipv4.c1902 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 Dudp.c1367 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 Droute.c547 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 Dinet_sock.rst22 struct ip_options_rcu* inet_opt read_mostly __ip_queue_x…
/linux/include/net/
H A Dinet_sock.h235 struct ip_options_rcu __rcu *inet_opt; member
H A Droute.h142 ip4_opt = rcu_dereference(inet->inet_opt); in inet_sk_init_flowi4()
/linux/net/mptcp/
H A Dprotocol.c3487 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 Dchtls_cm.c1210 newinet->inet_opt = NULL; in chtls_recv_sock()
/linux/net/ipv6/
H A Dtcp_ipv6.c1400 newinet->inet_opt = NULL;
/linux/net/
H A Dsocket.c3710 opt = rcu_dereference_protected(inet->inet_opt, in kernel_sock_ip_overhead()