Home
last modified time | relevance | path

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

/linux/net/dccp/
H A Dipv4.c
H A Dipv6.c
/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 Dudp.c1366 struct ip_options_rcu *inet_opt; in udp_sendmsg() local
1369 inet_opt = rcu_dereference(inet->inet_opt); in udp_sendmsg()
1370 if (inet_opt) { in udp_sendmsg()
1371 memcpy(&opt_copy, inet_opt, in udp_sendmsg()
1372 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.c3462 struct ip_options_rcu *inet_opt, *newopt = NULL; in mptcp_copy_ip_options() local
3469 inet_opt = rcu_dereference(inet->inet_opt); in mptcp_copy_ip_options()
3470 if (inet_opt) { in mptcp_copy_ip_options()
3471 newopt = sock_kmemdup(newsk, inet_opt, sizeof(*inet_opt) + in mptcp_copy_ip_options()
3472 inet_opt->opt.optlen, GFP_ATOMIC); in mptcp_copy_ip_options()
3476 RCU_INIT_POINTER(newinet->inet_opt, newopt); in mptcp_copy_ip_options()
/linux/net/ipv6/
H A Dtcp_ipv6.c1414 newinet->inet_opt = NULL;
/linux/net/
H A Dsocket.c3710 opt = rcu_dereference_protected(inet->inet_opt, in kernel_sock_ip_overhead()