Home
last modified time | relevance | path

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

123

/freebsd-13.1/lib/libc/net/
H A Dgethostbyht.c138 he->h_addrtype = af; in gethostent_p()
255 if (he.h_addrtype != af) in _ht_gethostbyname()
257 if (he.h_addrtype == AF_INET && in _ht_gethostbyname()
261 he.h_addrtype = AF_INET6; in _ht_gethostbyname()
320 if (he.h_addrtype == af && !bcmp(he.h_addr, addr, len)) { in _ht_gethostbyaddr()
321 if (he.h_addrtype == AF_INET && in _ht_gethostbyaddr()
325 he.h_addrtype = AF_INET6; in _ht_gethostbyaddr()
H A Dmap_v4v6.c93 if (hp->h_addrtype != AF_INET || hp->h_length != INADDRSZ) in _map_v4v6_hostent()
95 hp->h_addrtype = AF_INET6; in _map_v4v6_hostent()
H A Dname6.c463 nhp->h_addrtype = hp->h_addrtype; in _hpcopy()
490 hp->h_addrtype = af; in _hpaddr()
536 hp->h_addrtype = AF_INET6; in _hpmerge()
539 hp->h_addrtype = hp1->h_addrtype; in _hpmerge()
576 if (hp->h_addrtype == AF_INET6) in _hpmapv6()
580 hp6.h_addrtype = AF_INET6; in _hpmapv6()
604 hp->h_addrtype) in _hpsort()
654 switch (hp->h_addrtype) { in _hpreorder()
691 switch (hp->h_addrtype) { in _hpreorder()
H A Dgethostbydns.c450 he->h_addrtype = AF_INET6; in __dns_getanswer()
455 he->h_addrtype = AF_INET; in __dns_getanswer()
496 he.h_addrtype = af; in _dns_gethostbyname()
693 he.h_addrtype = af; in _dns_gethostbyaddr()
700 he.h_addrtype = AF_INET6; in _dns_gethostbyaddr()
H A Dgethostnamadr.c123 hptr->h_addrtype = he->h_addrtype; in __copy_hostent()
459 he.h_addrtype = af; in fakeaddr()
/freebsd-13.1/lib/libc/tests/nss/
H A Dgethostby_test.c156 dest->h_addrtype = src->h_addrtype; in clone_hostent()
228 if (ht1->h_addrtype != ht2->h_addrtype || in compare_hostent()
389 he->h_addrtype); in is_hostent_equal()
411 ht->h_name, ht->h_addrtype, ht->h_length); in sdump_hostent()
573 ht->h_addrtype = (int)strtol(s, &ts, 10); in hostent_read_snapshot_func()
692 if (!((ht->h_addrtype >= 0) && (ht->h_addrtype < AF_MAX))) in hostent_test_correctness()
734 he->h_addrtype); in hostent_test_gethostbyaddr()
820 he->h_addrtype); in hostent_test_getnameinfo_eq()
832 switch (he->h_addrtype) { in hostent_test_getnameinfo_eq()
851 he->h_addrtype); in hostent_test_getnameinfo_eq()
/freebsd-13.1/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-13.1/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-13.1/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-13.1/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-13.1/contrib/tcp_wrappers/
H A Dscaffold.c150 if (hp->h_addrtype != AF_INET) {
151 tcpd_warn("%d: not an internet host", hp->h_addrtype);
/freebsd-13.1/lib/libbluetooth/
H A Dbluetooth.c94 if (p->h_addrtype == type && bcmp(p->h_addr, addr, len) == 0) in bt_gethostbyaddr()
132 host.h_addrtype = AF_BLUETOOTH; in bt_gethostent()
/freebsd-13.1/lib/libc/tests/resolv/
H A Dresolv_test.c138 hp2 = gethostbyaddr(buf, hp->h_length, hp->h_addrtype); in resolv_gethostby()
160 hp2 = getipnodebyaddr(buf, hp->h_length, hp->h_addrtype, in resolv_getipnodeby()
/freebsd-13.1/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.c45 host1->h_addrtype = AF_INET; in gethostbyname()
59 host1->h_addrtype = AF_INET; in gethostbyaddr()
/freebsd-13.1/usr.bin/talk/
H A Dio.c84 if (hp2 != NULL && hp2->h_addrtype == AF_INET && in talk()
/freebsd-13.1/contrib/netbsd-tests/lib/libc/net/
H A Dh_hostent.c60 h->h_name, h->h_length, h->h_addrtype); in phostent()
/freebsd-13.1/contrib/ntp/include/
H A Dntp_machine.h140 int h_addrtype; /* host address type */ member
/freebsd-13.1/usr.sbin/ypserv/
H A Dyp_dnslookup.c80 if (inet_ntop(hp->h_addrtype, hp->h_addr, addr, sizeof(addr)) == NULL) in parse()
394 hent->h_addrtype = q->addrtype; in yp_run_dnsq()
/freebsd-13.1/include/
H A Dnetdb.h109 int h_addrtype; /* host address type */ member
/freebsd-13.1/contrib/sendmail/src/
H A Ddaemon.c1691 hp->h_addrtype != AF_INET)
1720 hp->h_addrtype != AF_INET6)
2497 addr.sa.sa_family = hp->h_addrtype;
2498 switch (hp->h_addrtype)
2520 hp->h_addrtype, hp->h_length);
2539 if (tTd(77, 101) && hp->h_addrtype == AF_INET &&
3462 if (hp->h_addrtype == AF_INET)
3472 if (hp->h_addrtype == AF_INET6)
3476 if (hp->h_addrtype == AF_INET &&
/freebsd-13.1/crypto/heimdal/lib/krb5/
H A Dget_addrs.c71 res->val[0].addr_type = hostent->h_addrtype; in gethostname_fallback()
/freebsd-13.1/lib/libcasper/services/cap_dns/tests/
H A Ddns_test.c204 if (hp0->h_addrtype != hp1->h_addrtype) in hostent_compare()

123