Home
last modified time | relevance | path

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

123

/netbsd/src/lib/libc/net/
Dsethostent.c182 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()
Dgethnamaddr.c421 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/
Dcopyhostent.c57 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()
Droken_gethostby.c201 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/
Dbiff_notify.c75 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/
Dgetrpcport.c79 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/
Dgetaddrinfo.c137 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/
Dgethostent_r.c171 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()
Dgethostent.c170 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;
Ddns_ho.c493 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()
Dlcl_ho.c301 int tlen = hp->h_length; in ho_byaddr()
404 pvt->host.h_length = len; in ho_next()
/netbsd/src/distrib/utils/libhack/
Dgethost.c193 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/
Dfind_inet.c87 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/
Drexec.c97 if (hp->h_length > (int) sizeof(rsin.sin_addr))
100 len = hp->h_length;
/netbsd/src/tests/lib/libc/net/
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()
/netbsd/src/usr.sbin/mrinfo/
Dmrinfo.c370 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/
Dops_lustre.c119 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/
Dnss_mdnsd.c652 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/
Dgethost.c45 (h->h_length == sizeof(addr))) {
/netbsd/src/external/bsd/ntp/dist/libntp/
Dmachines.c48 host1->h_length = 4; in gethostbyname()
62 host1->h_length = 4; in gethostbyaddr()
/netbsd/src/external/bsd/ntp/dist/include/
Dntp_machine.h143 int h_length; /* length of address */ member
/netbsd/src/include/
Dnetdb.h152 int h_length; /*%< length of address */ member
/netbsd/src/usr.sbin/yppoll/
Dyppoll.c183 (size_t)h->h_length); in get_remote_info()
/netbsd/src/share/doc/psd/20.ipctut/
Ddgramsend.c71 bcopy(hp->h_addr, &name.sin_addr, hp->h_length);
Dstreamwrite.c69 bcopy(hp->h_addr, &server.sin_addr, hp->h_length);

123