/freebsd/contrib/tcp_wrappers/ |
H A D | scaffold.c | 61 + (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 D | workarounds.c | 233 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 D | copyhostent.c | 55 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 D | roken_gethostby.c | 198 he.h_length = 4; in roken_gethostby() 266 he = gethostbyaddr(he->h_addr, he->h_length, AF_INET);
|
/freebsd/lib/libc/rpc/ |
H A D | getrpcport.c | 64 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 D | gethostby_test.c | 154 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 D | name6.c | 428 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 D | map_v4v6.c | 87 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 D | gethostnamadr.c | 106 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 D | gethostbydns.c | 355 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 D | gethostbyht.c | 131 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 D | resolv_test.c | 136 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 D | h_hostent.c | 57 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 D | get_addrs.c | 53 bcopy(hp->h_addr, (char *) &his_machine_addr, hp->h_length); in get_addrs()
|
H A D | io.c | 79 hp2->h_length == sizeof(his_machine_addr)) in talk()
|
/freebsd/lib/libcasper/services/cap_dns/ |
H A D | cap_dns.c | 85 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 D | dns_test.c | 184 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 D | gethost.c | 42 (h->h_length == sizeof(addr))) { in gethost()
|
/freebsd/tools/test/stress2/testcases/udp/ |
H A D | udp.c | 81 bcopy(host->h_addr, &sock_in.sin_addr, host->h_length); in test()
|
/freebsd/lib/libcasper/services/cap_net/ |
H A D | cap_net.c | 105 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 D | machines.c | 46 host1->h_length = 4; in gethostbyname() 60 host1->h_length = 4; in gethostbyaddr()
|
/freebsd/contrib/smbfs/lib/smb/ |
H A D | nb_net.c | 85 if (h->h_length != 4) { in nb_resolvehost_in()
|
/freebsd/contrib/ntp/include/ |
H A D | ntp_machine.h | 141 int h_length; /* length of address */ member
|
/freebsd/include/ |
H A D | netdb.h | 108 int h_length; /* length of address */ member
|
/freebsd/share/doc/psd/20.ipctut/ |
H A D | streamwrite.c | 65 bcopy(hp->h_addr, &server.sin_addr, hp->h_length);
|