Lines Matching refs:opt

161 static int sctp_v6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,  in sctp_v6_err()  argument
249 rcu_dereference(np->opt), in sctp_v6_xmit()
324 final_p = fl6_update_dst(fl6, rcu_dereference(np->opt), &final); in sctp_v6_get_dst()
384 final_p = fl6_update_dst(fl6, rcu_dereference(np->opt), &final); in sctp_v6_get_dst()
493 struct ipv6_txoptions *opt; in sctp_v6_copy_ip_options() local
498 opt = rcu_dereference(np->opt); in sctp_v6_copy_ip_options()
499 if (opt) { in sctp_v6_copy_ip_options()
500 opt = ipv6_dup_options(newsk, opt); in sctp_v6_copy_ip_options()
501 if (!opt) in sctp_v6_copy_ip_options()
504 RCU_INIT_POINTER(newnp->opt, opt); in sctp_v6_copy_ip_options()
512 struct ipv6_txoptions *opt; in sctp_v6_ip_options_len() local
516 opt = rcu_dereference(np->opt); in sctp_v6_ip_options_len()
517 if (opt) in sctp_v6_ip_options_len()
518 len = opt->opt_flen + opt->opt_nflen; in sctp_v6_ip_options_len()
961 struct sctp_sock *opt) in sctp_inet6_cmp_addr() argument
963 struct sock *sk = sctp_opt2sk(opt); in sctp_inet6_cmp_addr()
989 static int sctp_inet6_bind_verify(struct sctp_sock *opt, union sctp_addr *addr) in sctp_inet6_bind_verify() argument
1004 net = sock_net(&opt->inet.sk); in sctp_inet6_bind_verify()
1007 if (!dev || !(ipv6_can_nonlocal_bind(net, &opt->inet) || in sctp_inet6_bind_verify()
1016 af = opt->pf->af; in sctp_inet6_bind_verify()
1018 return af->available(addr, opt); in sctp_inet6_bind_verify()
1024 static int sctp_inet6_send_verify(struct sctp_sock *opt, union sctp_addr *addr) in sctp_inet6_send_verify() argument
1039 dev = dev_get_by_index_rcu(sock_net(&opt->inet.sk), in sctp_inet6_send_verify()
1045 af = opt->pf->af; in sctp_inet6_send_verify()
1057 static int sctp_inet6_supported_addrs(const struct sctp_sock *opt, in sctp_inet6_supported_addrs() argument
1061 if (!opt || !ipv6_only_sock(sctp_opt2sk(opt))) { in sctp_inet6_supported_addrs()