Lines Matching refs:opt
161 static int sctp_v6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
249 rcu_dereference(np->opt),
323 final_p = fl6_update_dst(fl6, rcu_dereference(np->opt), &final);
383 final_p = fl6_update_dst(fl6, rcu_dereference(np->opt), &final);
492 struct ipv6_txoptions *opt;
497 opt = rcu_dereference(np->opt);
498 if (opt) {
499 opt = ipv6_dup_options(newsk, opt);
500 if (!opt)
503 RCU_INIT_POINTER(newnp->opt, opt);
511 struct ipv6_txoptions *opt;
515 opt = rcu_dereference(np->opt);
516 if (opt)
517 len = opt->opt_flen + opt->opt_nflen;
953 struct sctp_sock *opt)
955 struct sock *sk = sctp_opt2sk(opt);
981 static int sctp_inet6_bind_verify(struct sctp_sock *opt, union sctp_addr *addr)
996 net = sock_net(&opt->inet.sk);
999 if (!dev || !(ipv6_can_nonlocal_bind(net, &opt->inet) ||
1008 af = opt->pf->af;
1010 return af->available(addr, opt);
1016 static int sctp_inet6_send_verify(struct sctp_sock *opt, union sctp_addr *addr)
1031 dev = dev_get_by_index_rcu(sock_net(&opt->inet.sk),
1037 af = opt->pf->af;
1049 static int sctp_inet6_supported_addrs(const struct sctp_sock *opt,
1053 if (!opt || !ipv6_only_sock(sctp_opt2sk(opt))) {