• Home
  • Raw
  • Download

Lines Matching refs:opt

125 static int sctp_v6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,  in sctp_v6_err()  argument
217 res = ip6_xmit(sk, skb, fl6, sk->sk_mark, rcu_dereference(np->opt), in sctp_v6_xmit()
276 final_p = fl6_update_dst(fl6, rcu_dereference(np->opt), &final); in sctp_v6_get_dst()
336 final_p = fl6_update_dst(fl6, rcu_dereference(np->opt), &final); in sctp_v6_get_dst()
445 struct ipv6_txoptions *opt; in sctp_v6_copy_ip_options() local
450 opt = rcu_dereference(np->opt); in sctp_v6_copy_ip_options()
451 if (opt) { in sctp_v6_copy_ip_options()
452 opt = ipv6_dup_options(newsk, opt); in sctp_v6_copy_ip_options()
453 if (!opt) in sctp_v6_copy_ip_options()
456 RCU_INIT_POINTER(newnp->opt, opt); in sctp_v6_copy_ip_options()
464 struct ipv6_txoptions *opt; in sctp_v6_ip_options_len() local
468 opt = rcu_dereference(np->opt); in sctp_v6_ip_options_len()
469 if (opt) in sctp_v6_ip_options_len()
470 len = opt->opt_flen + opt->opt_nflen; in sctp_v6_ip_options_len()
895 struct sctp_sock *opt) in sctp_inet6_cmp_addr() argument
897 struct sock *sk = sctp_opt2sk(opt); in sctp_inet6_cmp_addr()
923 static int sctp_inet6_bind_verify(struct sctp_sock *opt, union sctp_addr *addr) in sctp_inet6_bind_verify() argument
938 net = sock_net(&opt->inet.sk); in sctp_inet6_bind_verify()
941 if (!dev || !(ipv6_can_nonlocal_bind(net, &opt->inet) || in sctp_inet6_bind_verify()
950 af = opt->pf->af; in sctp_inet6_bind_verify()
952 return af->available(addr, opt); in sctp_inet6_bind_verify()
958 static int sctp_inet6_send_verify(struct sctp_sock *opt, union sctp_addr *addr) in sctp_inet6_send_verify() argument
973 dev = dev_get_by_index_rcu(sock_net(&opt->inet.sk), in sctp_inet6_send_verify()
979 af = opt->pf->af; in sctp_inet6_send_verify()
991 static int sctp_inet6_supported_addrs(const struct sctp_sock *opt, in sctp_inet6_supported_addrs() argument
995 if (!opt || !ipv6_only_sock(sctp_opt2sk(opt))) { in sctp_inet6_supported_addrs()