Home
last modified time | relevance | path

Searched refs:h_addrtype (Results 1 – 25 of 50) sorted by relevance

12

/netbsd/src/lib/libc/net/
Dsethostent.c181 hent.h_addrtype = 0; /* XXX: gcc */ in _hf_gethtbyname2()
185 info->hp->h_addrtype = af; in _hf_gethtbyname2()
202 hent.h_addrtype = af = hp->h_addrtype; in _hf_gethtbyname2()
235 hp->h_addrtype = hent.h_addrtype; in _hf_gethtbyname2()
275 info->hp->h_addrtype = va_arg(ap, int); in _hf_gethtbyaddr()
Dgethnamaddr.c595 hp->h_addrtype = af; in gethostbyname_internal()
791 if (hent->h_addrtype != 0 && hent->h_addrtype != af) in gethostent_r()
813 hent->h_addrtype = af; in gethostent_r()
868 if (hp->h_addrtype != AF_INET || hp->h_length != NS_INADDRSZ) in map_v4v6_hostent()
870 hp->h_addrtype = AF_INET6; in map_v4v6_hostent()
947 info->hp->h_addrtype = va_arg(ap, int); in _dns_gethtbyname()
949 switch (info->hp->h_addrtype) { in _dns_gethtbyname()
1014 info->hp->h_addrtype = va_arg(ap, int); in _dns_gethtbyaddr()
1016 switch (info->hp->h_addrtype) { in _dns_gethtbyaddr()
1081 if (info->hp->h_addrtype == AF_INET && (res->options & RES_USE_INET6)) { in _dns_gethtbyaddr()
[all …]
/netbsd/src/external/gpl2/xcvs/dist/lib/
Dgetaddrinfo.c105 switch (he->h_addrtype) in getaddrinfo()
127 switch (he->h_addrtype) in getaddrinfo()
190 tmp->ai_addr->sa_family = he->h_addrtype; in getaddrinfo()
/netbsd/src/external/bsd/libbind/dist/irs/
Dgethostent_r.c185 hptr->h_addrtype = he->h_addrtype; in copy_hostent()
226 hptr->h_addrtype = he->h_addrtype; in copy_hostent()
Dgethostent.c144 net_data->ho_last->h_addrtype == af) { in gethostbyname2_p()
191 hp->h_addrtype == AF_INET6 && in gethostent_p()
307 he.h_addrtype = (v4 == 1) ? AF_INET : AF_INET6; in getipnodebyname()
431 memput(*cpp, (he->h_addrtype == AF_INET) ? in freehostent()
856 if (af == AF_INET6 && he1->h_addrtype == AF_INET) { in copyandmerge()
877 if (af == AF_INET6 && he2->h_addrtype == AF_INET) { in copyandmerge()
917 he->h_addrtype = af; in copyandmerge()
1016 pvt->host.h_addrtype = af;
Dirp_ho.c181 af == ho->h_addrtype) { in ho_byname2()
235 af == ho->h_addrtype && in ho_byaddr()
Dlcl_ho.c234 if (hp->h_addrtype != af) in ho_byname2()
300 int taf = hp->h_addrtype; in ho_byaddr()
405 pvt->host.h_addrtype = af; in ho_next()
Dirpmarshall.c903 switch(ho->h_addrtype) { in irp_marshall_ho()
926 addrlen = (ho->h_addrtype == AF_INET ? 16 : 46) ; /*%< XX other AF's?? */ in irp_marshall_ho()
960 if (inet_ntop(ho->h_addrtype, *av, p, remlen) == NULL) { in irp_marshall_ho()
1112 ho->h_addrtype = hoaddrtype; in irp_unmarshall_ho()
2142 ADDR_T_STR(he.h_addrtype)); in main()
2145 inet_ntop(he.h_addrtype, he.h_addr_list[i], in main()
Ddns_ho.c492 pvt->host.h_addrtype = AF_INET6; in ho_byaddr()
720 pvt->host.h_addrtype = af; in gethostans()
1074 if (hp->h_addrtype != AF_INET || hp->h_length != INADDRSZ) in map_v4v6_hostent()
1076 hp->h_addrtype = AF_INET6; in map_v4v6_hostent()
/netbsd/src/distrib/utils/libhack/
Dgethost.c191 if (hent->h_addrtype != 0 && hent->h_addrtype != af) in gethostent_r()
213 hent->h_addrtype = af; in gethostent_r()
/netbsd/src/crypto/external/bsd/heimdal/dist/lib/roken/
Dcopyhostent.c56 res->h_addrtype = h->h_addrtype; in copyhostent()
Droken_gethostby.c200 he.h_addrtype = AF_INET; in roken_gethostby()
/netbsd/src/external/ibm-public/postfix/dist/src/util/
Dfind_inet.c85 if (hp->h_addrtype != AF_INET) in find_inet_addr()
86 msg_fatal("unexpected address family: %d", hp->h_addrtype); in find_inet_addr()
/netbsd/src/lib/libbluetooth/
Dbluetooth.c95 if (p->h_addrtype == type && memcmp(p->h_addr, addr, len) == 0) in bt_gethostbyaddr()
133 host.h_addrtype = AF_BLUETOOTH; in bt_gethostent()
/netbsd/src/external/ibm-public/postfix/dist/src/local/
Dbiff_notify.c79 sin.sin_family = hp->h_addrtype; in biff_notify()
/netbsd/src/external/apache2/mDNSResponder/nss/
Dnss_mdnsd.c651 ctx->host.h_addrtype = af; in _mdns_hostent_init()
723 hp->h_addrtype = ctx->host.h_addrtype; in _mdns_hostent_done()
831 if (ctx->host.h_addrtype == AF_INET) { in _mdns_hostent_cb()
838 if (ctx->host.h_addrtype == AF_INET6) { in _mdns_hostent_cb()
/netbsd/src/external/bsd/ntp/dist/libntp/
Dmachines.c46 host1->h_addrtype = AF_INET; in gethostbyname()
60 host1->h_addrtype = AF_INET; in gethostbyaddr()
Dntp_rfc2553.c567 ai->ai_family = hp->h_addrtype; in do_nodename()
571 ai->ai_addr->sa_family = hp->h_addrtype; in do_nodename()
/netbsd/src/lib/libcompat/4.3/
Drexec.c93 rsin.sin_family = hp->h_addrtype;
/netbsd/src/external/bsd/ntp/dist/include/
Dntp_machine.h142 int h_addrtype; /* host address type */ member
/netbsd/src/tests/lib/libc/net/
Dh_hostent.c60 h->h_name, h->h_length, h->h_addrtype); in phostent()
/netbsd/src/include/
Dnetdb.h151 int h_addrtype; /*%< host address type */ member
/netbsd/src/crypto/external/cpl/trousers/dist/src/tddl/
Dtddl.c71 addr.sin_family = host->h_addrtype; in open_device()
/netbsd/src/crypto/external/bsd/heimdal/dist/lib/krb5/
Dget_addrs.c71 res->val[0].addr_type = hostent->h_addrtype; in gethostname_fallback()
/netbsd/src/external/bsd/ntp/dist/sntp/libevent/
Devutil.c1186 if (ent->h_addrtype == PF_INET) { in addrinfo_from_hostent()
1197 } else if (ent->h_addrtype == PF_INET6) { in addrinfo_from_hostent()
1551 if (ent->h_addrtype != hints.ai_family && in evutil_getaddrinfo()
1565 if (ent->h_addrtype != PF_INET && ent->h_addrtype != PF_INET6) in evutil_getaddrinfo()

12