Lines Matching refs:inet_opt
194 struct ip_options_rcu *inet_opt, *newopt = NULL; in sctp_v4_copy_ip_options() local
199 inet_opt = rcu_dereference(inet->inet_opt); in sctp_v4_copy_ip_options()
200 if (inet_opt) { in sctp_v4_copy_ip_options()
201 newopt = sock_kmalloc(newsk, sizeof(*inet_opt) + in sctp_v4_copy_ip_options()
202 inet_opt->opt.optlen, GFP_ATOMIC); in sctp_v4_copy_ip_options()
204 memcpy(newopt, inet_opt, sizeof(*inet_opt) + in sctp_v4_copy_ip_options()
205 inet_opt->opt.optlen); in sctp_v4_copy_ip_options()
209 RCU_INIT_POINTER(newinet->inet_opt, newopt); in sctp_v4_copy_ip_options()
217 struct ip_options_rcu *inet_opt; in sctp_v4_ip_options_len() local
221 inet_opt = rcu_dereference(inet->inet_opt); in sctp_v4_ip_options_len()
222 if (inet_opt) in sctp_v4_ip_options_len()
223 len = inet_opt->opt.optlen; in sctp_v4_ip_options_len()