Searched refs:af (Results 1 - 9 of 9) sorted by relevance

/fuchsia/zircon/third_party/ulib/musl/src/network/
H A Dgethostbyaddr_r.c10 int gethostbyaddr_r(const void* a, socklen_t l, int af, struct hostent* h, char* buf, size_t buflen, argument
15 } sa = {.sin.sin_family = af};
16 socklen_t sl = af == AF_INET6 ? sizeof sa.sin6 : sizeof sa.sin;
22 if (af == AF_INET6 && l == 16)
24 else if (af == AF_INET && l == 4)
68 h->h_addrtype = af;
H A Dgethostbyname2_r.c10 int gethostbyname2_r(const char* name, int af, struct hostent* h, char* buf, size_t buflen, argument
17 hints.ai_family = af;
37 h->h_addrtype = af;
38 h->h_length = (af == AF_INET) ? 4 : 16;
71 if (af == AF_INET) {
74 } else if (af == AF_INET6) {
H A Dgethostbyaddr.c7 struct hostent* gethostbyaddr(const void* a, socklen_t l, int af) { argument
19 err = gethostbyaddr_r(a, l, af, h, (void*)(h + 1), size - sizeof *h, &res, &h_errno);
H A Dgethostbyname2.c8 struct hostent* gethostbyname2(const char* name, int af) { argument
20 err = gethostbyname2_r(name, af, h, (void*)(h + 1), size - sizeof *h, &res, &h_errno);
H A Dinet_pton.c16 int inet_pton(int af, const char* restrict s, void* restrict a0) { argument
21 if (af == AF_INET) {
35 } else if (af != AF_INET6) {
H A Dinet_ntop.c7 const char* inet_ntop(int af, const void* restrict a0, char* restrict s, socklen_t l) { argument
12 switch (af) {
H A Dgetnameinfo.c61 int af = sa->sa_family; local
65 switch (af) {
100 inet_ntop(af, a, buf, sizeof buf);
H A Dnetlink.c7 static int __netlink_enumerate(int fd, unsigned int seq, int type, int af, argument
25 u.req.g.rtgen_family = af;
H A Dgetifaddrs.c55 static void copy_addr(struct sockaddr** r, int af, union sockany* sa, void* addr, size_t addrlen, argument
60 switch (af) {
76 sa->sa.sa_family = af;
81 static void gen_netmask(struct sockaddr** r, int af, union sockany* sa, int prefixlen) { argument
91 copy_addr(r, af, sa, addr, sizeof(addr), 0);

Completed in 78 milliseconds