Lines Matching refs:inet_opt
179 struct ip_options_rcu *inet_opt, *newopt = NULL; in sctp_v4_copy_ip_options() local
184 inet_opt = rcu_dereference(inet->inet_opt); in sctp_v4_copy_ip_options()
185 if (inet_opt) { in sctp_v4_copy_ip_options()
186 newopt = sock_kmalloc(newsk, sizeof(*inet_opt) + in sctp_v4_copy_ip_options()
187 inet_opt->opt.optlen, GFP_ATOMIC); in sctp_v4_copy_ip_options()
189 memcpy(newopt, inet_opt, sizeof(*inet_opt) + in sctp_v4_copy_ip_options()
190 inet_opt->opt.optlen); 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()