Lines Matching refs:inet_opt
179 struct ip_options_rcu *inet_opt, *newopt = NULL;
184 inet_opt = rcu_dereference(inet->inet_opt);
185 if (inet_opt) {
186 newopt = sock_kmalloc(newsk, sizeof(*inet_opt) +
187 inet_opt->opt.optlen, GFP_ATOMIC);
189 memcpy(newopt, inet_opt, sizeof(*inet_opt) +
190 inet_opt->opt.optlen);
194 RCU_INIT_POINTER(newinet->inet_opt, newopt);
202 struct ip_options_rcu *inet_opt;
206 inet_opt = rcu_dereference(inet->inet_opt);
207 if (inet_opt)
208 len = inet_opt->opt.optlen;