Home
last modified time | relevance | path

Searched refs:h_length (Results 1 – 25 of 60) sorted by relevance

123

/freebsd/contrib/tcp_wrappers/
H A Dscaffold.c61 + (hp->h_length + sizeof(char *)) * count)) == 0) { in dup_hostent()
66 hb->host.h_length = hp->h_length; in dup_hostent()
72 hb->host.h_addr_list[count] = data + hp->h_length * count; in dup_hostent()
73 memcpy(hb->host.h_addr_list[count], addr, hp->h_length); in dup_hostent()
129 h.h_length = sizeof(addr); in find_inet_addr()
H A Dworkarounds.c233 memcpy(*n_addr_list++, (char *) &addr, hp->h_length);
239 memcpy(*n_addr_list++, *o_addr_list, hp->h_length);
/freebsd/crypto/heimdal/lib/roken/
H A Dcopyhostent.c55 res->h_length = h->h_length; in copyhostent()
90 res->h_addr_list[i] = malloc (h->h_length); in copyhostent()
95 memcpy (res->h_addr_list[i], h->h_addr_list[i], h->h_length); in copyhostent()
H A Droken_gethostby.c198 he.h_length = 4; in roken_gethostby()
266 he = gethostbyaddr(he->h_addr, he->h_length, AF_INET);
/freebsd/lib/libc/rpc/
H A Dgetrpcport.c64 if (hp->h_length > sizeof(addr.sin_addr.s_addr)) in getrpcport()
65 hp->h_length = sizeof(addr.sin_addr.s_addr); in getrpcport()
66 memcpy(&addr.sin_addr.s_addr, hp->h_addr, (size_t)hp->h_length); in getrpcport()
/freebsd/lib/libc/tests/nss/
H A Dgethostby_test.c154 dest->h_length = src->h_length; in clone_hostent()
226 ht1->h_length != ht2->h_length || in compare_hostent()
408 ht->h_name, ht->h_addrtype, ht->h_length); in sdump_hostent()
452 i + 1 != (size_t)ht->h_length ? in sdump_hostent()
576 ht->h_length = (int)strtol(s, &ts, 10); in hostent_read_snapshot_func()
614 ts = calloc(1, ht->h_length); in hostent_read_snapshot_func()
618 ht->h_length); in hostent_read_snapshot_func()
624 ts = calloc(1, ht->h_length); in hostent_read_snapshot_func()
627 (unsigned char *)ts, ht->h_length); in hostent_read_snapshot_func()
693 (ht->h_length != sizeof(struct in6_addr))) in hostent_test_correctness()
[all …]
/freebsd/lib/libc/net/
H A Dname6.c428 addrsize = ALIGN(hp->h_length); in _hpcopy()
461 nhp->h_length = hp->h_length; in _hpcopy()
467 memcpy(cp, *pp, hp->h_length); in _hpcopy()
488 hp->h_length = ADDRLEN(af); in _hpaddr()
532 if (hp1->h_length != hp2->h_length) { in _hpmerge()
534 hp->h_length = sizeof(struct in6_addr); in _hpmerge()
537 hp->h_length = hp1->h_length; in _hpmerge()
545 if (HP(i)->h_length == hp->h_length) { in _hpmerge()
578 hp6.h_length = sizeof(struct in6_addr); in _hpmapv6()
609 for (n = 0; n < hp->h_length; n++) { in _hpsort()
[all …]
H A Dmap_v4v6.c87 if (hp->h_addrtype != AF_INET || hp->h_length != INADDRSZ) in _map_v4v6_hostent()
90 hp->h_length = IN6ADDRSZ; in _map_v4v6_hostent()
H A Dgethostnamadr.c106 len += he->h_length; in __copy_hostent()
121 n = hptr->h_length = he->h_length; in __copy_hostent()
304 desired_size += addr_size * _ALIGN(ht->h_length); in host_marshal_func()
349 size = _ALIGN(new_ht.h_length); in host_marshal_func()
459 he.h_length = NS_INADDRSZ; in fakeaddr()
462 he.h_length = NS_IN6ADDRSZ; in fakeaddr()
H A Dgethostbydns.c355 if (n != he->h_length) { in gethostanswer()
447 he->h_length = NS_IN6ADDRSZ; in __dns_getanswer()
452 he->h_length = NS_INADDRSZ; in __dns_getanswer()
495 he.h_length = NS_INADDRSZ; in _dns_gethostbyname()
499 he.h_length = NS_IN6ADDRSZ; in _dns_gethostbyname()
690 he.h_length = len; in _dns_gethostbyaddr()
697 he.h_length = NS_IN6ADDRSZ; in _dns_gethostbyaddr()
H A Dgethostbyht.c131 he->h_length = len; in gethostent_p()
254 he.h_length = IN6ADDRSZ; in _ht_gethostbyname()
318 he.h_length = IN6ADDRSZ; in _ht_gethostbyaddr()
/freebsd/lib/libc/tests/resolv/
H A Dresolv_test.c136 memcpy(buf, hp->h_addr, hp->h_length); in resolv_gethostby()
137 hp2 = gethostbyaddr(buf, hp->h_length, hp->h_addrtype); in resolv_gethostby()
158 memcpy(buf, hp->h_addr, hp->h_length); in resolv_getipnodeby()
159 hp2 = getipnodebyaddr(buf, hp->h_length, hp->h_addrtype, in resolv_getipnodeby()
/freebsd/contrib/netbsd-tests/lib/libc/net/
H A Dh_hostent.c57 const int af = h->h_length == NS_INADDRSZ ? AF_INET : AF_INET6; in phostent()
60 h->h_name, h->h_length, h->h_addrtype); in phostent()
/freebsd/usr.bin/talk/
H A Dget_addrs.c53 bcopy(hp->h_addr, (char *) &his_machine_addr, hp->h_length); in get_addrs()
H A Dio.c79 hp2->h_length == sizeof(his_machine_addr)) in talk()
/freebsd/lib/libcasper/services/cap_dns/
H A Dcap_dns.c85 hp->h_length = (int)nvlist_get_number(nvl, "length"); in hostent_unpack()
106 hp->h_addr_list[ii] = malloc(hp->h_length); in hostent_unpack()
112 hp->h_addr_list[ii], hp->h_length); in hostent_unpack()
442 nvlist_add_number(nvl, "length", (uint64_t)hp->h_length); in hostent_pack()
462 (size_t)hp->h_length); in hostent_pack()
/freebsd/lib/libcasper/services/cap_dns/tests/
H A Ddns_test.c184 if (hp0->h_length != hp1->h_length) in hostent_compare()
188 hp0->h_length)) { in hostent_compare()
192 hp0->h_length)) { in hostent_compare()
/freebsd/sbin/ipf/libipf/
H A Dgethost.c42 (h->h_length == sizeof(addr))) { in gethost()
/freebsd/tools/test/stress2/testcases/udp/
H A Dudp.c81 bcopy(host->h_addr, &sock_in.sin_addr, host->h_length); in test()
/freebsd/lib/libcasper/services/cap_net/
H A Dcap_net.c105 hp->h_length = (int)nvlist_get_number(nvl, "length"); in hostent_unpack()
126 hp->h_addr_list[ii] = malloc(hp->h_length); in hostent_unpack()
132 hp->h_addr_list[ii], hp->h_length); in hostent_unpack()
754 nvlist_add_number(nvl, "length", (uint64_t)hp->h_length); in hostent_pack()
774 (size_t)hp->h_length); in hostent_pack()
777 hp->h_length, hp->h_addrtype); in hostent_pack()
/freebsd/contrib/ntp/libntp/
H A Dmachines.c46 host1->h_length = 4; in gethostbyname()
60 host1->h_length = 4; in gethostbyaddr()
/freebsd/contrib/smbfs/lib/smb/
H A Dnb_net.c85 if (h->h_length != 4) { in nb_resolvehost_in()
/freebsd/contrib/ntp/include/
H A Dntp_machine.h141 int h_length; /* length of address */ member
/freebsd/include/
H A Dnetdb.h108 int h_length; /* length of address */ member
/freebsd/share/doc/psd/20.ipctut/
H A Dstreamwrite.c65 bcopy(hp->h_addr, &server.sin_addr, hp->h_length);

123