Home
last modified time | relevance | path

Searched refs:inet_opt (Results 1 – 16 of 16) 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 = 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 in __ip_queue_xmit()
[all...]
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.c230 struct ip_options_rcu *inet_opt; in tcp_v4_connect() local
245 inet_opt = rcu_dereference_protected(inet->inet_opt, in tcp_v4_connect()
247 if (inet_opt && inet_opt->opt.srr) { in tcp_v4_connect()
250 nexthop = inet_opt->opt.faddr; in tcp_v4_connect()
271 if (!inet_opt || !inet_opt->opt.srr) in tcp_v4_connect()
298 if (inet_opt) in tcp_v4_connect()
299 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.c159 kfree(rcu_dereference_protected(inet->inet_opt, 1)); in inet_sock_destruct()
1269 struct ip_options_rcu *inet_opt; in inet_sk_reselect_saddr() local
1272 inet_opt = rcu_dereference_protected(inet->inet_opt, in inet_sk_reselect_saddr()
1274 if (inet_opt && inet_opt->opt.srr) in inet_sk_reselect_saddr()
1275 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/net/mptcp/
H A Dprotocol.c3482 struct ip_options_rcu *inet_opt, *newopt = NULL; in mptcp_copy_ip_options() local
3489 inet_opt = rcu_dereference(inet->inet_opt); in mptcp_copy_ip_options()
3490 if (inet_opt) { in mptcp_copy_ip_options()
3491 newopt = sock_kmemdup(newsk, inet_opt, sizeof(*inet_opt) + in mptcp_copy_ip_options()
3492 inet_opt->opt.optlen, GFP_ATOMIC); in mptcp_copy_ip_options()
3496 RCU_INIT_POINTER(newinet->inet_opt, newopt); in mptcp_copy_ip_options()
/linux/net/ipv6/
H A Dtcp_ipv6.c1416 newinet->inet_opt = NULL;
/linux/drivers/net/ethernet/chelsio/inline_crypto/chtls/
H A Dchtls_cm.c1210 newinet->inet_opt = NULL; in chtls_recv_sock()
/linux/net/
H A Dsocket.c3710 opt = rcu_dereference_protected(inet->inet_opt, in kernel_sock_ip_overhead()