Home
last modified time | relevance | path

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

123

/freebsd/lib/libc/net/
H A Dgethostbyht.c132 he->h_addrtype = af; in gethostent_p()
249 if (he.h_addrtype != af) in _ht_gethostbyname()
251 if (he.h_addrtype == AF_INET && in _ht_gethostbyname()
255 he.h_addrtype = AF_INET6; in _ht_gethostbyname()
314 if (he.h_addrtype == af && !bcmp(he.h_addr, addr, len)) { in _ht_gethostbyaddr()
315 if (he.h_addrtype == AF_INET && in _ht_gethostbyaddr()
319 he.h_addrtype = AF_INET6; in _ht_gethostbyaddr()
H A Dmap_v4v6.c87 if (hp->h_addrtype != AF_INET || hp->h_length != INADDRSZ) in _map_v4v6_hostent()
89 hp->h_addrtype = AF_INET6; in _map_v4v6_hostent()
H A Dname6.c460 nhp->h_addrtype = hp->h_addrtype; in _hpcopy()
487 hp->h_addrtype = af; in _hpaddr()
533 hp->h_addrtype = AF_INET6; in _hpmerge()
536 hp->h_addrtype = hp1->h_addrtype; in _hpmerge()
573 if (hp->h_addrtype == AF_INET6) in _hpmapv6()
577 hp6.h_addrtype = AF_INET6; in _hpmapv6()
601 hp->h_addrtype) in _hpsort()
651 switch (hp->h_addrtype) { in _hpreorder()
688 switch (hp->h_addrtype) { in _hpreorder()
H A Dgethostbydns.c446 he->h_addrtype = AF_INET6; in __dns_getanswer()
451 he->h_addrtype = AF_INET; in __dns_getanswer()
492 he.h_addrtype = af; in _dns_gethostbyname()
689 he.h_addrtype = af; in _dns_gethostbyaddr()
696 he.h_addrtype = AF_INET6; in _dns_gethostbyaddr()
H A Dgethostnamadr.c120 hptr->h_addrtype = he->h_addrtype; in __copy_hostent()
456 he.h_addrtype = af; in fakeaddr()
/freebsd/lib/libc/tests/nss/
H A Dgethostby_test.c153 dest->h_addrtype = src->h_addrtype; in clone_hostent()
225 if (ht1->h_addrtype != ht2->h_addrtype || in compare_hostent()
386 he->h_addrtype); in is_hostent_equal()
408 ht->h_name, ht->h_addrtype, ht->h_length); in sdump_hostent()
570 ht->h_addrtype = (int)strtol(s, &ts, 10); in hostent_read_snapshot_func()
689 if (!((ht->h_addrtype >= 0) && (ht->h_addrtype < AF_MAX))) in hostent_test_correctness()
731 he->h_addrtype); in hostent_test_gethostbyaddr()
817 he->h_addrtype); in hostent_test_getnameinfo_eq()
829 switch (he->h_addrtype) { in hostent_test_getnameinfo_eq()
848 he->h_addrtype); in hostent_test_getnameinfo_eq()
/freebsd/crypto/heimdal/lib/roken/
H A Dcopyhostent.c54 res->h_addrtype = h->h_addrtype; in copyhostent()
H A Droken_gethostby.c197 he.h_addrtype = AF_INET; in roken_gethostby()
/freebsd/contrib/smbfs/lib/smb/
H A Dnb_net.c81 if (h->h_addrtype != AF_INET) { in nb_resolvehost_in()
95 sinp->sin_family = h->h_addrtype; in nb_resolvehost_in()
/freebsd/contrib/sendmail/libmilter/
H A Dsm_gethost.c79 if (h != NULL && h->h_addrtype != family)
150 if (h != NULL && h->h_addrtype != family)
H A Dlistener.c395 addr.sa.sa_family = hp->h_addrtype;
396 switch (hp->h_addrtype)
419 name, at, hp->h_addrtype);
/freebsd/contrib/bsnmp/lib/
H A Dsupport.c138 if (hent->h_addrtype != hints->ai_family) in getaddrinfo()
140 if (hent->h_addrtype != AF_INET) in getaddrinfo()
/freebsd/contrib/tcp_wrappers/
H A Dscaffold.c147 if (hp->h_addrtype != AF_INET) { in find_inet_addr()
148 tcpd_warn("%d: not an internet host", hp->h_addrtype); in find_inet_addr()
/freebsd/lib/libbluetooth/
H A Dbluetooth.c93 if (p->h_addrtype == type && bcmp(p->h_addr, addr, len) == 0) in bt_gethostbyaddr()
131 host.h_addrtype = AF_BLUETOOTH; in bt_gethostent()
/freebsd/tools/test/stress2/testcases/udp/
H A Dudp.c80 sock_in.sin_family = host->h_addrtype; in test()
/freebsd/lib/libc/tests/resolv/
H A Dresolv_test.c137 hp2 = gethostbyaddr(buf, hp->h_length, hp->h_addrtype); in resolv_gethostby()
159 hp2 = getipnodebyaddr(buf, hp->h_length, hp->h_addrtype, in resolv_getipnodeby()
/freebsd/contrib/ntp/libntp/
H A Dntp_rfc2553.c565 ai->ai_family = hp->h_addrtype; in do_nodename()
569 ai->ai_addr->sa_family = hp->h_addrtype; in do_nodename()
H A Dmachines.c44 host1->h_addrtype = AF_INET; in gethostbyname()
58 host1->h_addrtype = AF_INET; in gethostbyaddr()
/freebsd/usr.bin/talk/
H A Dio.c78 if (hp2 != NULL && hp2->h_addrtype == AF_INET && in talk()
/freebsd/contrib/netbsd-tests/lib/libc/net/
H A Dh_hostent.c60 h->h_name, h->h_length, h->h_addrtype); in phostent()
/freebsd/contrib/ntp/include/
H A Dntp_machine.h140 int h_addrtype; /* host address type */ member
/freebsd/usr.sbin/ypserv/
H A Dyp_dnslookup.c78 if (inet_ntop(hp->h_addrtype, hp->h_addr, addr, sizeof(addr)) == NULL) in parse()
388 hent->h_addrtype = q->addrtype; in yp_run_dnsq()
/freebsd/include/
H A Dnetdb.h107 int h_addrtype; /* host address type */ member
/freebsd/contrib/sendmail/src/
H A Ddaemon.c1698 hp->h_addrtype != AF_INET)
1727 hp->h_addrtype != AF_INET6)
2520 addr.sa.sa_family = hp->h_addrtype;
2521 switch (hp->h_addrtype)
2543 hp->h_addrtype, hp->h_length);
2562 if (tTd(77, 101) && hp != NULL && hp->h_addrtype == AF_INET &&
3546 if (hp->h_addrtype == AF_INET)
3556 if (hp->h_addrtype == AF_INET6)
3560 if (hp->h_addrtype == AF_INET &&
/freebsd/crypto/heimdal/lib/krb5/
H A Dget_addrs.c71 res->val[0].addr_type = hostent->h_addrtype; in gethostname_fallback()

123