Searched refs:inet_opt (Results 1 – 13 of 13) sorted by relevance
| /net/sctp/ |
| A D | protocol.c | 181 struct ip_options_rcu *inet_opt, *newopt = NULL; in sctp_v4_copy_ip_options() local 186 inet_opt = rcu_dereference(inet->inet_opt); in sctp_v4_copy_ip_options() 187 if (inet_opt) { in sctp_v4_copy_ip_options() 188 newopt = sock_kmemdup(newsk, inet_opt, sizeof(*inet_opt) + in sctp_v4_copy_ip_options() 189 inet_opt->opt.optlen, GFP_ATOMIC); in sctp_v4_copy_ip_options() 193 RCU_INIT_POINTER(newinet->inet_opt, newopt); in sctp_v4_copy_ip_options() 201 struct ip_options_rcu *inet_opt; in sctp_v4_ip_options_len() local 205 inet_opt = rcu_dereference(inet->inet_opt); in sctp_v4_ip_options_len() 206 if (inet_opt) in sctp_v4_ip_options_len() 207 len = inet_opt->opt.optlen; in sctp_v4_ip_options_len()
|
| /net/ipv4/ |
| A D | ip_output.c | 466 struct ip_options_rcu *inet_opt; in __ip_queue_xmit() local 476 inet_opt = rcu_dereference(inet->inet_opt); in __ip_queue_xmit() 502 if (inet_opt && inet_opt->opt.is_strictroute && rt->rt_uses_gateway) in __ip_queue_xmit() 506 skb_push(skb, sizeof(struct iphdr) + (inet_opt ? inet_opt->opt.optlen : 0)); in __ip_queue_xmit() 520 if (inet_opt && inet_opt->opt.optlen) { in __ip_queue_xmit() 521 iph->ihl += inet_opt->opt.optlen >> 2; in __ip_queue_xmit() 522 ip_options_build(skb, &inet_opt->opt, inet->inet_daddr, rt); in __ip_queue_xmit()
|
| A D | raw.c | 559 struct ip_options_rcu *inet_opt; in raw_sendmsg() local 562 inet_opt = rcu_dereference(inet->inet_opt); in raw_sendmsg() 563 if (inet_opt) { in raw_sendmsg() 564 memcpy(&opt_copy, inet_opt, in raw_sendmsg() 565 sizeof(*inet_opt) + inet_opt->opt.optlen); in raw_sendmsg()
|
| A D | ping.c | 749 struct ip_options_rcu *inet_opt; in ping_v4_sendmsg() local 752 inet_opt = rcu_dereference(inet->inet_opt); in ping_v4_sendmsg() 753 if (inet_opt) { in ping_v4_sendmsg() 754 memcpy(&opt_copy, inet_opt, in ping_v4_sendmsg() 755 sizeof(*inet_opt) + inet_opt->opt.optlen); in ping_v4_sendmsg()
|
| A D | tcp_ipv4.c | 228 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() 1770 struct ip_options_rcu *inet_opt; local 1786 RCU_INIT_POINTER(newinet->inet_opt, inet_opt); 1791 if (inet_opt) 1841 newinet->inet_opt = NULL; [all …]
|
| A D | ip_sockglue.c | 1090 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()
|
| A D | af_inet.c | 158 kfree(rcu_dereference_protected(inet->inet_opt, 1)); in inet_sock_destruct() 1261 struct ip_options_rcu *inet_opt; in inet_sk_reselect_saddr() local 1264 inet_opt = rcu_dereference_protected(inet->inet_opt, in inet_sk_reselect_saddr() 1266 if (inet_opt && inet_opt->opt.srr) in inet_sk_reselect_saddr() 1267 daddr = inet_opt->opt.faddr; in inet_sk_reselect_saddr()
|
| A D | cipso_ipv4.c | 1904 old = rcu_dereference_protected(sk_inet->inet_opt, sk_locked); in cipso_v4_sock_setattr() 1912 rcu_assign_pointer(sk_inet->inet_opt, opt); in cipso_v4_sock_setattr() 2062 hdr_delta = cipso_v4_delopt(&sk_inet->inet_opt); in cipso_v4_sock_delattr() 2151 opt = rcu_dereference(inet_sk(sk)->inet_opt); in cipso_v4_sock_getattr()
|
| A D | udp.c | 1366 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()
|
| A D | route.c | 546 const struct ip_options_rcu *inet_opt; in build_sk_flow_key() local 550 inet_opt = rcu_dereference(inet->inet_opt); in build_sk_flow_key() 551 if (inet_opt && inet_opt->opt.srr) in build_sk_flow_key() 552 daddr = inet_opt->opt.faddr; in build_sk_flow_key()
|
| /net/mptcp/ |
| A D | protocol.c | 3225 struct ip_options_rcu *inet_opt, *newopt = NULL; in mptcp_copy_ip_options() local 3232 inet_opt = rcu_dereference(inet->inet_opt); in mptcp_copy_ip_options() 3233 if (inet_opt) { in mptcp_copy_ip_options() 3234 newopt = sock_kmemdup(newsk, inet_opt, sizeof(*inet_opt) + in mptcp_copy_ip_options() 3235 inet_opt->opt.optlen, GFP_ATOMIC); in mptcp_copy_ip_options() 3239 RCU_INIT_POINTER(newinet->inet_opt, newopt); in mptcp_copy_ip_options()
|
| /net/ipv6/ |
| A D | tcp_ipv6.c | 1471 newinet->inet_opt = NULL;
|
| /net/ |
| A D | socket.c | 3732 opt = rcu_dereference_protected(inet->inet_opt, in kernel_sock_ip_overhead()
|
Completed in 720 milliseconds