Lines Matching refs:family
127 int BIO_ADDR_rawmake(BIO_ADDR *ap, int family, in BIO_ADDR_rawmake() argument
132 if (family == AF_UNIX) { in BIO_ADDR_rawmake()
136 ap->s_un.sun_family = family; in BIO_ADDR_rawmake()
141 if (family == AF_INET) { in BIO_ADDR_rawmake()
145 ap->s_in.sin_family = family; in BIO_ADDR_rawmake()
151 if (family == AF_INET6) { in BIO_ADDR_rawmake()
155 ap->s_in6.sin6_family = family; in BIO_ADDR_rawmake()
597 static int addrinfo_wrap(int family, int socktype, in addrinfo_wrap() argument
605 (*bai)->bai_family = family; in addrinfo_wrap()
612 if (family == AF_UNIX) in addrinfo_wrap()
623 BIO_ADDR_rawmake(addr, family, where, wherelen, port); in addrinfo_wrap()
644 int family, int socktype, BIO_ADDRINFO **res) in BIO_lookup() argument
646 return BIO_lookup_ex(host, service, lookup_type, family, socktype, 0, res); in BIO_lookup()
672 int family, int socktype, int protocol, BIO_ADDRINFO **res) in BIO_lookup_ex() argument
676 switch (family) { in BIO_lookup_ex()
694 if (family == AF_UNIX) { in BIO_lookup_ex()
695 if (addrinfo_wrap(family, socktype, host, strlen(host), 0, res)) in BIO_lookup_ex()
713 hints.ai_family = family; in BIO_lookup_ex()
718 if (host != NULL && family == AF_UNSPEC) in BIO_lookup_ex()