| /netbsd/src/lib/libc/net/ |
| D | sethostent.c | 182 hent.h_length = 0; /* XXX: gcc */ in _hf_gethtbyname2() 186 info->hp->h_length = 0; in _hf_gethtbyname2() 203 hent.h_length = hp->h_length; in _hf_gethtbyname2() 219 HENT_COPY(addr_ptrs[num], hp->h_addr_list[0], hp->h_length, ptr, in _hf_gethtbyname2() 236 hp->h_length = hent.h_length; in _hf_gethtbyname2() 242 HENT_COPY(hp->h_addr_list[i], addr_ptrs[i], hp->h_length, ptr, in _hf_gethtbyname2() 274 info->hp->h_length = va_arg(ap, int); in _hf_gethtbyaddr() 285 if (!memcmp(hp->h_addr_list[0], addr, (size_t)hp->h_length)) in _hf_gethtbyaddr()
|
| D | gethnamaddr.c | 421 if (n != hent->h_length) { in getanswer() 596 hp->h_length = (int)size; in gethostbyname_internal() 793 if (hent->h_length != 0 && hent->h_length != len) in gethostent_r() 812 hent->h_length = len; in gethostent_r() 817 HENT_COPY(hent->h_addr_list[0], &host_addr, hent->h_length, buf, in gethostent_r() 868 if (hp->h_addrtype != AF_INET || hp->h_length != NS_INADDRSZ) in map_v4v6_hostent() 871 hp->h_length = NS_IN6ADDRSZ; in map_v4v6_hostent() 951 info->hp->h_length = NS_INADDRSZ; in _dns_gethtbyname() 955 info->hp->h_length = NS_IN6ADDRSZ; in _dns_gethtbyname() 1013 info->hp->h_length = va_arg(ap, int); in _dns_gethtbyaddr() [all …]
|
| /netbsd/src/crypto/external/bsd/heimdal/dist/lib/roken/ |
| D | copyhostent.c | 57 res->h_length = h->h_length; in copyhostent() 92 res->h_addr_list[i] = malloc (h->h_length); in copyhostent() 97 memcpy (res->h_addr_list[i], h->h_addr_list[i], h->h_length); in copyhostent()
|
| D | roken_gethostby.c | 201 he.h_length = 4; in roken_gethostby() 269 he = gethostbyaddr(he->h_addr, he->h_length, AF_INET);
|
| /netbsd/src/external/ibm-public/postfix/dist/src/local/ |
| D | biff_notify.c | 75 if ((int) hp->h_length > (int) sizeof(sin.sin_addr)) { in biff_notify() 76 msg_warn("bad address size %d for localhost", hp->h_length); in biff_notify() 81 memcpy((void *) &sin.sin_addr, hp->h_addr_list[0], hp->h_length); in biff_notify()
|
| /netbsd/src/lib/libc/rpc/ |
| D | getrpcport.c | 79 if (hp->h_length > addr.sin_len) in __weak_alias() 80 hp->h_length = addr.sin_len; in __weak_alias() 81 memcpy(&addr.sin_addr.s_addr, hp->h_addr, (size_t)hp->h_length); in __weak_alias()
|
| /netbsd/src/external/gpl2/xcvs/dist/lib/ |
| D | getaddrinfo.c | 137 if (he->h_length != sizeof (sinp->sin6_addr)) in getaddrinfo() 140 memcpy (&sinp->sin6_addr, he->h_addr_list[0], he->h_length); in getaddrinfo() 156 if (he->h_length != sizeof (sinp->sin_addr)) in getaddrinfo() 159 memcpy (&sinp->sin_addr, he->h_addr_list[0], he->h_length); in getaddrinfo()
|
| /netbsd/src/external/bsd/libbind/dist/irs/ |
| D | gethostent_r.c | 171 len += he->h_length; in copy_hostent() 186 n = hptr->h_length = he->h_length; in copy_hostent() 227 n = hptr->h_length = he->h_length; in copy_hostent()
|
| D | gethostent.c | 170 net_data->ho_last->h_length == len) in gethostbyaddr_p() 306 he.h_length = (v4 == 1) ? INADDRSZ : IN6ADDRSZ; in getipnodebyname() 918 he->h_length = (af == AF_INET) ? INADDRSZ : IN6ADDRSZ; in copyandmerge() 1019 pvt->host.h_length = NS_INADDRSZ; 1022 pvt->host.h_length = NS_IN6ADDRSZ;
|
| D | dns_ho.c | 493 pvt->host.h_length = IN6ADDRSZ; in ho_byaddr() 721 pvt->host.h_length = size; in gethostans() 1074 if (hp->h_addrtype != AF_INET || hp->h_length != INADDRSZ) in map_v4v6_hostent() 1077 hp->h_length = IN6ADDRSZ; in map_v4v6_hostent()
|
| D | lcl_ho.c | 301 int tlen = hp->h_length; in ho_byaddr() 404 pvt->host.h_length = len; in ho_next()
|
| /netbsd/src/distrib/utils/libhack/ |
| D | gethost.c | 193 if (hent->h_length != 0 && hent->h_length != len) in gethostent_r() 212 hent->h_length = len; in gethostent_r() 217 HENT_COPY(hent->h_addr_list[0], &host_addr, hent->h_length, buf, in gethostent_r()
|
| /netbsd/src/external/ibm-public/postfix/dist/src/util/ |
| D | find_inet.c | 87 if (hp->h_length != sizeof(addr)) in find_inet_addr() 88 msg_fatal("unexpected address length %d", hp->h_length); in find_inet_addr() 89 memcpy((void *) &addr, hp->h_addr, hp->h_length); in find_inet_addr()
|
| /netbsd/src/lib/libcompat/4.3/ |
| D | rexec.c | 97 if (hp->h_length > (int) sizeof(rsin.sin_addr)) 100 len = hp->h_length;
|
| /netbsd/src/tests/lib/libc/net/ |
| 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()
|
| /netbsd/src/usr.sbin/mrinfo/ |
| D | mrinfo.c | 370 hp->h_length = sizeof(target_addr); in main() 374 hp->h_addr_list[0] = malloc(hp->h_length); in main() 377 memcpy(hp->h_addr_list[0], &target_addr, hp->h_length); in main() 382 if (hp == NULL || hp->h_length != sizeof(target_addr)) { in main()
|
| /netbsd/src/external/bsd/am-utils/dist/amd/ |
| D | ops_lustre.c | 119 if (hp->h_length != sizeof(addr.s_addr)) { in lustre_match() 121 sizeof(addr), hp->h_length, ptr); in lustre_match()
|
| /netbsd/src/external/apache2/mDNSResponder/nss/ |
| D | nss_mdnsd.c | 652 ctx->host.h_length = addrlen; in _mdns_hostent_init() 706 if ((len == ctx->host.h_length) && (ctx->naddrs < MAXADDRS)) { in _mdns_hostent_add_addr() 722 hp->h_length = ctx->host.h_length; in _mdns_hostent_done() 729 hp->h_length, ptr, len); in _mdns_hostent_done()
|
| /netbsd/src/external/bsd/ipf/dist/lib/ |
| D | gethost.c | 45 (h->h_length == sizeof(addr))) {
|
| /netbsd/src/external/bsd/ntp/dist/libntp/ |
| D | machines.c | 48 host1->h_length = 4; in gethostbyname() 62 host1->h_length = 4; in gethostbyaddr()
|
| /netbsd/src/external/bsd/ntp/dist/include/ |
| D | ntp_machine.h | 143 int h_length; /* length of address */ member
|
| /netbsd/src/include/ |
| D | netdb.h | 152 int h_length; /*%< length of address */ member
|
| /netbsd/src/usr.sbin/yppoll/ |
| D | yppoll.c | 183 (size_t)h->h_length); in get_remote_info()
|
| /netbsd/src/share/doc/psd/20.ipctut/ |
| D | dgramsend.c | 71 bcopy(hp->h_addr, &name.sin_addr, hp->h_length);
|
| D | streamwrite.c | 69 bcopy(hp->h_addr, &server.sin_addr, hp->h_length);
|