Lines Matching refs:inet_opt
180 struct ip_options_rcu *inet_opt, *newopt = NULL; in sctp_v4_copy_ip_options() local
185 inet_opt = rcu_dereference(inet->inet_opt); in sctp_v4_copy_ip_options()
186 if (inet_opt) { in sctp_v4_copy_ip_options()
187 newopt = sock_kmalloc(newsk, sizeof(*inet_opt) + in sctp_v4_copy_ip_options()
188 inet_opt->opt.optlen, GFP_ATOMIC); in sctp_v4_copy_ip_options()
190 memcpy(newopt, inet_opt, sizeof(*inet_opt) + in sctp_v4_copy_ip_options()
191 inet_opt->opt.optlen); in sctp_v4_copy_ip_options()
195 RCU_INIT_POINTER(newinet->inet_opt, newopt); in sctp_v4_copy_ip_options()
203 struct ip_options_rcu *inet_opt; in sctp_v4_ip_options_len() local
207 inet_opt = rcu_dereference(inet->inet_opt); in sctp_v4_ip_options_len()
208 if (inet_opt) in sctp_v4_ip_options_len()
209 len = inet_opt->opt.optlen; in sctp_v4_ip_options_len()