Lines Matching defs:sp
680 static int sctp_v6_available(union sctp_addr *addr, struct sctp_sock *sp)
683 struct sock *sk = &sp->inet.sk;
692 if (sp && ipv6_only_sock(sctp_opt2sk(sp)))
695 return sctp_get_af_specific(AF_INET)->available(addr, sp);
706 return ipv6_can_nonlocal_bind(net, &sp->inet) ||
718 struct sctp_sock *sp,
728 if (sp && ipv6_only_sock(sctp_opt2sk(sp)))
731 return sctp_get_af_specific(AF_INET)->addr_valid(addr, sp, skb);
821 static int sctp_v6_addr_to_user(struct sctp_sock *sp, union sctp_addr *addr)
823 if (sp->v4mapped) {
932 static int sctp_inet6_af_supported(sa_family_t family, struct sctp_sock *sp)
939 if (!ipv6_only_sock(sctp_opt2sk(sp)))