Searched refs:inet_opt (Results 1 – 14 of 14) sorted by relevance
| /linux/net/dccp/ |
| H A D | ipv4.c | |
| H A D | ipv6.c | |
| /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 | 497 inet_sk(newsk)->inet_opt = NULL; in sctp_v6_copy_ip_options()
|
| /linux/net/ipv4/ |
| H A D | ip_output.c | 467 struct ip_options_rcu *inet_opt; in __ip_queue_xmit() local 477 inet_opt = rcu_dereference(inet->inet_opt); in __ip_queue_xmit() 503 if (inet_opt && inet_opt->opt.is_strictroute && rt->rt_uses_gateway) in __ip_queue_xmit() 507 skb_push(skb, sizeof(struct iphdr) + (inet_opt ? inet_opt->opt.optlen : 0)); in __ip_queue_xmit() 521 if (inet_opt && inet_opt->opt.optlen) { in __ip_queue_xmit() 522 iph->ihl += inet_opt->opt.optlen >> 2; in __ip_queue_xmit() 523 ip_options_build(skb, &inet_opt->opt, inet->inet_daddr, rt); in __ip_queue_xmit()
|
| H A D | raw.c | 567 struct ip_options_rcu *inet_opt; in raw_sendmsg() local 570 inet_opt = rcu_dereference(inet->inet_opt); in raw_sendmsg() 571 if (inet_opt) { in raw_sendmsg() 572 memcpy(opt_copy, inet_opt, in raw_sendmsg() 573 sizeof(*inet_opt) + inet_opt->opt.optlen); in raw_sendmsg()
|
| H A D | tcp_ipv4.c | 227 struct ip_options_rcu *inet_opt; in tcp_v4_connect() local 242 inet_opt = rcu_dereference_protected(inet->inet_opt, in tcp_v4_connect() 244 if (inet_opt && inet_opt->opt.srr) { in tcp_v4_connect() 247 nexthop = inet_opt->opt.faddr; in tcp_v4_connect() 268 if (!inet_opt || !inet_opt->opt.srr) in tcp_v4_connect() 295 if (inet_opt) in tcp_v4_connect() 296 inet_csk(sk)->icsk_ext_hdr_len += inet_opt->opt.optlen; in tcp_v4_connect() 1692 struct ip_options_rcu *inet_opt; local 1707 inet_opt = rcu_dereference(ireq->ireq_opt); 1708 RCU_INIT_POINTER(newinet->inet_opt, inet_opt); [all …]
|
| 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 | 1327 struct ip_options_rcu *inet_opt; in udp_sendmsg() local 1330 inet_opt = rcu_dereference(inet->inet_opt); in udp_sendmsg() 1331 if (inet_opt) { in udp_sendmsg() 1332 memcpy(opt_copy, inet_opt, in udp_sendmsg() 1333 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/include/net/ |
| 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 | 3678 struct ip_options_rcu *inet_opt, *newopt = NULL; in mptcp_copy_ip_options() local 3685 inet_opt = rcu_dereference(inet->inet_opt); in mptcp_copy_ip_options() 3686 if (inet_opt) { in mptcp_copy_ip_options() 3687 newopt = sock_kmemdup(newsk, inet_opt, sizeof(*inet_opt) + in mptcp_copy_ip_options() 3688 inet_opt->opt.optlen, GFP_ATOMIC); in mptcp_copy_ip_options() 3692 RCU_INIT_POINTER(newinet->inet_opt, newopt); in mptcp_copy_ip_options()
|
| /linux/net/ipv6/ |
| H A D | tcp_ipv6.c | 1434 newinet->inet_opt = NULL;
|
| /linux/net/ |
| H A D | socket.c | 3831 opt = rcu_dereference_protected(inet->inet_opt, in kernel_sock_ip_overhead()
|