Home
last modified time | relevance | path

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

/linux/net/dccp/
H A Dipv4.c
H A Dipv6.c
/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 in sctp_v4_ip_options_len()
[all...]
H A Dipv6.c497 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.c561 struct ip_options_rcu *inet_opt; in raw_sendmsg() local
564 inet_opt = rcu_dereference(inet->inet_opt); in raw_sendmsg()
565 if (inet_opt) { in raw_sendmsg()
566 memcpy(opt_copy, inet_opt, in raw_sendmsg()
567 sizeof(*inet_opt) + inet_opt->opt.optlen); in raw_sendmsg()
H A Dtcp_ipv4.c227 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()
1689 struct ip_options_rcu *inet_opt; local
1704 inet_opt = rcu_dereference(ireq->ireq_opt);
1705 RCU_INIT_POINTER(newinet->inet_opt, inet_opt);
[all …]
H A Daf_inet.c164 kfree(rcu_dereference_protected(inet->inet_opt, 1)); in inet_sock_destruct()
1272 struct ip_options_rcu *inet_opt; in inet_sk_reselect_saddr() local
1275 inet_opt = rcu_dereference_protected(inet->inet_opt, in inet_sk_reselect_saddr()
1277 if (inet_opt && inet_opt->opt.srr) in inet_sk_reselect_saddr()
1278 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.c1325 struct ip_options_rcu *inet_opt; in udp_sendmsg() local
1328 inet_opt = rcu_dereference(inet->inet_opt); in udp_sendmsg()
1329 if (inet_opt) { in udp_sendmsg()
1330 memcpy(opt_copy, inet_opt, in udp_sendmsg()
1331 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/net/mptcp/
H A Dprotocol.c3527 struct ip_options_rcu *inet_opt, *newopt = NULL; in mptcp_copy_ip_options() local
3534 inet_opt = rcu_dereference(inet->inet_opt); in mptcp_copy_ip_options()
3535 if (inet_opt) { in mptcp_copy_ip_options()
3536 newopt = sock_kmemdup(newsk, inet_opt, sizeof(*inet_opt) + in mptcp_copy_ip_options()
3537 inet_opt->opt.optlen, GFP_ATOMIC); in mptcp_copy_ip_options()
3541 RCU_INIT_POINTER(newinet->inet_opt, newopt); in mptcp_copy_ip_options()
/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.c1417 newinet->inet_opt = NULL;
/linux/net/
H A Dsocket.c3816 opt = rcu_dereference_protected(inet->inet_opt, in kernel_sock_ip_overhead()