Searched refs:h_length (Results 1 - 25 of 47) sorted by relevance

12

/freebsd-10-stable/lib/libc/rpc/
H A Dgetrpcport.c69 if (hp->h_length > addr.sin_len)
70 hp->h_length = addr.sin_len;
71 memcpy(&addr.sin_addr.s_addr, hp->h_addr, (size_t)hp->h_length);
/freebsd-10-stable/crypto/heimdal/lib/roken/
H A Dcopyhostent.c55 res->h_length = h->h_length;
90 res->h_addr_list[i] = malloc (h->h_length);
95 memcpy (res->h_addr_list[i], h->h_addr_list[i], h->h_length);
H A Droken_gethostby.c198 he.h_length = 4;
266 he = gethostbyaddr(he->h_addr, he->h_length, AF_INET);
/freebsd-10-stable/usr.bin/talk/
H A Dget_addrs.c57 bcopy(hp->h_addr, (char *) &his_machine_addr, hp->h_length);
H A Dio.c82 hp2->h_length == sizeof(his_machine_addr))
/freebsd-10-stable/lib/libc/net/
H A Dmap_v4v6.c91 if (hp->h_addrtype != AF_INET || hp->h_length != INADDRSZ)
94 hp->h_length = IN6ADDRSZ;
H A Dname6.c429 addrsize = ALIGN(hp->h_length);
462 nhp->h_length = hp->h_length;
468 memcpy(cp, *pp, hp->h_length);
489 hp->h_length = ADDRLEN(af);
533 if (hp1->h_length != hp2->h_length) {
535 hp->h_length = sizeof(struct in6_addr);
538 hp->h_length = hp1->h_length;
[all...]
H A Dgethostbydns.c361 if (n != he->h_length) {
453 he->h_length = NS_IN6ADDRSZ;
458 he->h_length = NS_INADDRSZ;
501 he.h_length = NS_INADDRSZ;
505 he.h_length = NS_IN6ADDRSZ;
696 he.h_length = len;
703 he.h_length = NS_IN6ADDRSZ;
H A Dgethostnamadr.c114 len += he->h_length;
129 n = hptr->h_length = he->h_length;
312 desired_size += addr_size * _ALIGN(ht->h_length);
357 size = _ALIGN(new_ht.h_length);
467 he.h_length = NS_INADDRSZ;
470 he.h_length = NS_IN6ADDRSZ;
H A Dgethostbyht.c135 he->h_length = len;
258 he.h_length = IN6ADDRSZ;
322 he.h_length = IN6ADDRSZ;
/freebsd-10-stable/tools/regression/lib/libc/nss/
H A Dtest-gethostby.c164 dest->h_length = src->h_length;
197 (char *)malloc(src->h_length);
200 src->h_addr_list[offset], src->h_length);
243 (ht1->h_length != ht2->h_length) ||
302 if (memcmp(*c1, *ct, ht1->h_length) == 0) {
319 if (memcmp(*c2, *ct, ht1->h_length) == 0) {
407 rv = check_addrinfo_for_addr(ai, *cp, he->h_length,
431 ht->h_name, ht->h_addrtype, ht->h_length);
[all...]
/freebsd-10-stable/contrib/tcp_wrappers/
H A Dscaffold.c61 + (hp->h_length + sizeof(char *)) * count)) == 0) {
66 hb->host.h_length = hp->h_length;
72 hb->host.h_addr_list[count] = data + hp->h_length * count;
73 memcpy(hb->host.h_addr_list[count], addr, hp->h_length);
131 h.h_length = sizeof(addr);
H A Dworkarounds.c246 memcpy(*n_addr_list++, (char *) &addr, hp->h_length);
252 memcpy(*n_addr_list++, *o_addr_list, hp->h_length);
/freebsd-10-stable/lib/libc/tests/nss/
H A Dgethostby_test.c157 dest->h_length = src->h_length;
183 dest->h_addr_list[offset] = malloc(src->h_length);
186 src->h_addr_list[offset], src->h_length);
229 ht1->h_length != ht2->h_length ||
286 if (memcmp(*c1, *ct, ht1->h_length) == 0) {
302 if (memcmp(*c2, *ct, ht1->h_length) == 0) {
388 rv = check_addrinfo_for_addr(ai, *cp, he->h_length,
411 ht->h_name, ht->h_addrtype, ht->h_length);
[all...]
/freebsd-10-stable/contrib/ipfilter/lib/
H A Dgethost.c45 (h->h_length == sizeof(addr))) {
/freebsd-10-stable/tools/regression/lib/libc/resolv/
H A Dresolv.c152 memcpy(buf, hp->h_addr, hp->h_length);
153 hp2 = gethostbyaddr(buf, hp->h_length, hp->h_addrtype);
177 memcpy(buf, hp->h_addr, hp->h_length);
178 hp2 = getipnodebyaddr(buf, hp->h_length, hp->h_addrtype,
/freebsd-10-stable/usr.sbin/timed/timedc/
H A Dcmds.c199 bcopy(hp->h_addr, &server.sin_addr.s_addr, hp->h_length);
230 hp->h_length);
297 bcopy(hp->h_addr, &dest.sin_addr.s_addr, hp->h_length);
396 bcopy(hp->h_addr, &sin.sin_addr.s_addr, hp->h_length);
445 bcopy(hp->h_addr, &dest.sin_addr.s_addr, hp->h_length);
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/net/
H A Dh_hostent.c57 const int af = h->h_length == NS_INADDRSZ ? AF_INET : AF_INET6;
60 h->h_name, h->h_length, h->h_addrtype);
/freebsd-10-stable/contrib/amd/amd/
H A Dops_lustre.c117 if (hp->h_length != sizeof(addr.s_addr)) {
119 sizeof(addr), hp->h_length, ptr);
/freebsd-10-stable/lib/libc/tests/resolv/
H A Dresolv_test.c135 memcpy(buf, hp->h_addr, hp->h_length);
136 hp2 = gethostbyaddr(buf, hp->h_length, hp->h_addrtype);
158 memcpy(buf, hp->h_addr, hp->h_length);
159 hp2 = getipnodebyaddr(buf, hp->h_length, hp->h_addrtype,
/freebsd-10-stable/contrib/smbfs/lib/smb/
H A Dnb_net.c85 if (h->h_length != 4) {
/freebsd-10-stable/contrib/ntp/include/
H A Dntp_machine.h141 int h_length; /* length of address */ member in struct:hostent
/freebsd-10-stable/crypto/openssl/crypto/bio/
H A Db_sock.c322 ret->h_length = a->h_length;
325 if ((ret->h_addr_list[i] = OPENSSL_malloc(a->h_length)) == NULL)
327 memcpy(ret->h_addr_list[i], a->h_addr_list[i], a->h_length);
/freebsd-10-stable/include/
H A Dnetdb.h98 int h_length; /* length of address */ member in struct:hostent
/freebsd-10-stable/contrib/ntp/libntp/
H A Dmachines.c47 host1->h_length = 4;
61 host1->h_length = 4;

Completed in 168 milliseconds

12