Home
last modified time | relevance | path

Searched refs:hp (Results 1 – 25 of 407) sorted by relevance

12345678910>>...17

/freebsd/libexec/bootpd/
H A Ddumptab.c45 struct host *hp; in dumptab() local
103 for (hp = (struct host *) hash_FirstEntry(nmhashtable); hp != NULL; in dumptab()
105 dump_host(fp, hp); in dumptab()
125 if (hp) { in dump_host()
128 if (hp->flags.bootfile) { in dump_host()
161 if (hp->flags.gateway) { in dump_host()
167 if (hp->flags.homedir) { in dump_host()
173 if (hp->flags.name_switch && hp->flags.send_name) { in dump_host()
176 if (hp->flags.htype) { in dump_host()
179 if (hp->flags.haddr) { in dump_host()
[all …]
H A Ddovend.c112 hp->domain_server, in dovend_rfc1497()
134 hp->nis_server, in dovend_rfc1497()
154 hp->name_server, in dovend_rfc1497()
160 hp->rlp_server, in dovend_rfc1497()
167 hp->time_server, in dovend_rfc1497()
174 hp->ntp_server, in dovend_rfc1497()
188 if (hp->flags.name_switch && hp->flags.send_name) { in dovend_rfc1497()
224 hp->lpr_server, in dovend_rfc1497()
230 hp->cookie_server, in dovend_rfc1497()
236 hp->log_server, in dovend_rfc1497()
[all …]
H A Dreadfile.c308 struct host *hp; in readtab() local
378 bzero((char *) hp, sizeof(*hp)); in readtab()
420 if (hp->flags.htype && hp->flags.haddr) { in readtab()
422 hp->linkcount++; in readtab()
423 hashcode = hash_HashFunction(hp->haddr, haddrlength(hp->htype)); in readtab()
424 if (hash_Insert(hwhashtable, hashcode, hwinscmp, hp, hp) < 0) { in readtab()
427 haddrtoa(hp->haddr, haddrlength(hp->htype))); in readtab()
435 if (hash_Insert(iphashtable, hashcode, nullcmp, hp, hp) < 0) { in readtab()
447 hp->hostname->string, hp) < 0) { in readtab()
453 hp->linkcount++; in readtab()
[all …]
H A Dbootpd.c620 struct host *hp = NULL; in handle_request() local
680 if (hp == NULL && in handle_request()
694 if (hp == NULL) { in handle_request()
719 if (hp == NULL) { in handle_request()
739 if (t < hp->min_wait) { in handle_request()
743 t, hp->min_wait); in handle_request()
868 if (hp->flags.homedir) in handle_request()
870 if (hp->flags.bootfile) in handle_request()
971 dovend_cmu(bp, hp); in handle_request()
1232 pktlen = hp->msg_size; in dovend_rfc1048()
[all …]
/freebsd/sbin/hastd/
H A Dhooks.c173 hp = malloc(sizeof(*hp)); in hook_alloc()
181 hp->hp_birthtime = hp->hp_lastreport = time(NULL); in hook_alloc()
182 (void)strlcpy(hp->hp_comm, path, sizeof(hp->hp_comm)); in hook_alloc()
185 (void)snprlcat(hp->hp_comm, sizeof(hp->hp_comm), " %s", in hook_alloc()
188 if (strlen(hp->hp_comm) >= sizeof(hp->hp_comm) - 1) { in hook_alloc()
190 free(hp); in hook_alloc()
194 return (hp); in hook_alloc()
231 free(hp); in hook_free()
249 return (hp); in hook_find()
305 hp->hp_pid, hp->hp_comm); in hook_check()
[all …]
/freebsd/cddl/contrib/opensolaris/common/ctf/
H A Dctf_hash.c55 hp->h_buckets = ctf_alloc(sizeof (uint_t) * hp->h_nbuckets); in ctf_hash_create()
56 hp->h_chains = ctf_alloc(sizeof (ctf_helem_t) * hp->h_nelems); in ctf_hash_create()
58 if (hp->h_buckets == NULL || hp->h_chains == NULL) { in ctf_hash_create()
63 bzero(hp->h_buckets, sizeof (uint_t) * hp->h_nbuckets); in ctf_hash_create()
64 bzero(hp->h_chains, sizeof (ctf_helem_t) * hp->h_nelems); in ctf_hash_create()
72 return (hp->h_nelems ? hp->h_nelems - 1 : 0); in ctf_hash_size()
99 ctf_helem_t *hep = &hp->h_chains[hp->h_free]; in ctf_hash_insert()
105 if (hp->h_free >= hp->h_nelems) in ctf_hash_insert()
121 hp->h_buckets[h] = hp->h_free++; in ctf_hash_insert()
169 if (hp->h_buckets != NULL && hp->h_nbuckets != 1) { in ctf_hash_destroy()
[all …]
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_inttab.c57 dt_inthash_t *hp, *np; in dt_inttab_destroy() local
59 for (hp = ip->int_head; hp != NULL; hp = np) { in dt_inttab_destroy()
60 np = hp->inh_next; in dt_inttab_destroy()
72 dt_inthash_t *hp; in dt_inttab_insert() local
75 for (hp = ip->int_hash[h]; hp != NULL; hp = hp->inh_hash) { in dt_inttab_insert()
76 if (hp->inh_value == value && hp->inh_flags == flags) in dt_inttab_insert()
85 hp->inh_next = NULL; in dt_inttab_insert()
90 ip->int_hash[h] = hp; in dt_inttab_insert()
94 ip->int_head = hp; in dt_inttab_insert()
98 ip->int_tail = hp; in dt_inttab_insert()
[all …]
H A Ddt_strtab.c104 dt_strhash_t *hp, *hq; in dt_strtab_destroy() local
108 for (hp = sp->str_hash[i]; hp != NULL; hp = hq) { in dt_strtab_destroy()
109 hq = hp->str_next; in dt_strtab_destroy()
110 free(hp); in dt_strtab_destroy()
219 dt_strhash_t *hp; in dt_strtab_index() local
228 for (hp = sp->str_hash[h]; hp != NULL; hp = hp->str_next) { in dt_strtab_index()
239 dt_strhash_t *hp; in dt_strtab_insert() local
259 hp->str_len = len; in dt_strtab_insert()
267 free(hp); in dt_strtab_insert()
273 sp->str_hash[h] = hp; in dt_strtab_insert()
[all …]
/freebsd/sbin/ipf/libipf/
H A Dprinthashdata.c12 printhashdata(iphtable_t *hp, int opts) in printhashdata() argument
20 switch (hp->iph_type & ~IPHASH_ANON) in printhashdata()
27 if (hp->iph_flags & FR_INQUE) in printhashdata()
29 else if (hp->iph_flags & FR_OUTQUE) in printhashdata()
35 PRINTF("%#x", hp->iph_type); in printhashdata()
42 hp->iph_name); in printhashdata()
49 printunit(hp->iph_unit); in printhashdata()
56 hp->iph_name, (u_long)hp->iph_size); in printhashdata()
57 if (hp->iph_seed != 0) in printhashdata()
76 (u_long)hp->iph_size, hp->iph_seed); in printhashdata()
[all …]
/freebsd/usr.sbin/lpr/pac/
H A Dpac.c255 *ap = hp; in dumpit()
256 hp = hp->h_link; in dumpit()
263 hp = *ap; in dumpit()
267 hp->h_feetpages, hp->h_count, hp->h_feetpages * price); in dumpit()
295 hp->h_name, hp->h_count); in rewrite()
296 hp = hp->h_link; in rewrite()
326 return(hp); in enter()
329 hp = (struct hent *) calloc(sizeof *hp, (size_t)1); in enter()
336 return(hp); in enter()
351 for (hp = hashtab[h]; hp != NULL; hp = hp->h_link) in lookup()
[all …]
/freebsd/contrib/atf/test-programs/
H A Dsrcdir_test.sh43 h=${hp##*/}
44 cp ${hp} tmp
65 h=${hp##*/}
66 cp ${hp} tmp
67 cp ${hp} tmp/.libs
75 h=${hp##*/}
76 cp ${hp} tmp
96 h=${hp##*/}
97 cp ${hp} tmp
119 h=${hp##*/}
[all …]
/freebsd/cddl/contrib/opensolaris/tools/ctf/dump/
H A Ddump.c191 ref_to_str(hp->cth_parlabel, hp, cd)); in print_header()
193 ref_to_str(hp->cth_parname, hp, cd)); in print_header()
219 if (hp->cth_lbloff > hp->cth_objtoff) in print_labeltable()
282 if (hp->cth_objtoff > hp->cth_funcoff) in read_data()
333 if (hp->cth_funcoff > hp->cth_typeoff) in read_funcs()
417 if (hp->cth_typeoff > hp->cth_stroff) in read_types()
423 if (hp->cth_parlabel || hp->cth_parname) in read_types()
733 if (hp->cth_stroff + hp->cth_strlen > cd->cd_ctflen) in read_strtab()
1029 hp = v; in main()
1060 zstr.avail_out = hp->cth_stroff + hp->cth_strlen; in main()
[all …]
/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dstrtab.c69 strhash_t *hp, *hq; in strtab_destroy() local
73 for (hp = sp->str_hash[i]; hp != NULL; hp = hq) { in strtab_destroy()
74 hq = hp->str_next; in strtab_destroy()
75 free(hp); in strtab_destroy()
157 strhash_t *hp; in strtab_insert() local
170 for (hp = sp->str_hash[h]; hp != NULL; hp = hp->str_next) { in strtab_insert()
184 hp->str_len = len; in strtab_insert()
187 sp->str_hash[h] = hp; in strtab_insert()
197 return (hp->str_off); in strtab_insert()
233 const strhash_t *hp; in strtab_print() local
[all …]
/freebsd/lib/libc/net/
H A Dname6.c284 hp = _hpcopy(hp, errp); in getipnodebyname()
287 hp = _hpreorder(hp); in getipnodebyname()
410 return hp; in _hpcopy()
484 hp = &hpbuf; in _hpaddr()
596 return hp; in _hpsort()
632 return hp; in _hpsort()
649 return hp; in _hpreorder()
658 return hp; in _hpreorder()
669 return hp; in _hpreorder()
681 return hp; in _hpreorder()
[all …]
/freebsd/lib/libcasper/services/cap_dns/
H A Dcap_dns.c56 free(hp->h_name); in hostent_free()
57 hp->h_name = NULL; in hostent_free()
79 hostent_free(hp); in hostent_unpack()
88 hp->h_aliases = calloc(sizeof(hp->h_aliases[0]), nitems + 1); in hostent_unpack()
102 hp->h_addr_list = calloc(sizeof(hp->h_addr_list[0]), nitems + 1); 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()
116 return (hp); in hostent_unpack()
118 hostent_free(hp); in hostent_unpack()
153 return (hp); in cap_gethostbyname2()
[all …]
/freebsd/usr.bin/xstr/
H A Dxstr.c337 hp = hp->hnext; in hashit()
342 if ((hp = (struct hash *) calloc(1, sizeof (*hp))) == NULL) in hashit()
344 hp->hpt = mesgpt; in hashit()
349 hp->hnew = new; in hashit()
350 hp0->hnext = hp; in hashit()
358 struct hash *hp; in flushsh() local
363 for (hp = bucket[i].hnext; hp != NULL; hp = hp->hnext) in flushsh()
364 if (hp->hnew) in flushsh()
374 for (hp = bucket[i].hnext; hp != NULL; hp = hp->hnext) { in flushsh()
375 found(hp->hnew, hp->hpt, hp->hstr); in flushsh()
[all …]
/freebsd/contrib/tcp_wrappers/
H A Dscaffold.c66 hb->host.h_length = hp->h_length; in dup_hostent()
119 struct hostent *hp; in find_inet_addr() local
143 if ((hp = gethostbyname(host)) == 0) { in find_inet_addr()
147 if (hp->h_addrtype != AF_INET) { in find_inet_addr()
151 if (STR_NE(host, hp->h_name)) { in find_inet_addr()
155 return (dup_hostent(hp)); in find_inet_addr()
166 struct addrinfo *hp, *res; local
169 struct hostent *hp; local
174 if ((hp = find_inet_addr(host)) == 0)
203 freeaddrinfo(hp);
[all …]
/freebsd/sbin/rcorder/
H A Dhash.c103 register struct Hash_Entry **hp; in Hash_InitTable() local
117 t->bucketPtr = hp = (struct Hash_Entry **)emalloc(sizeof(*hp) * i); in Hash_InitTable()
119 *hp++ = NULL; in Hash_InitTable()
227 struct Hash_Entry **hp; in Hash_CreateEntry() local
254 e->next = *hp; in Hash_CreateEntry()
255 *hp = e; in Hash_CreateEntry()
286 register Hash_Entry **hp, *p; in Hash_DeleteEntry() local
291 (p = *hp) != NULL; hp = &p->next) { in Hash_DeleteEntry()
293 *hp = p->next; in Hash_DeleteEntry()
411 t->bucketPtr = hp = (struct Hash_Entry **) emalloc(sizeof(*hp) * i); in RebuildTable()
[all …]
/freebsd/libexec/bootpd/tools/bootpef/
H A Dbootpef.c119 struct host *hp; in main() local
230 if (!hp) { in main()
234 if (!hp->flags.exten_file) { in main()
238 mktagfile(hp); in main()
246 while (hp != NULL) { in main()
247 mktagfile(hp); in main()
261 mktagfile(struct host *hp) in mktagfile() argument
267 if (!hp->flags.exten_file) in mktagfile()
280 len = dovend_rfc1497(hp, vp, bytesleft); in mktagfile()
286 hp->exten_file->string); in mktagfile()
[all …]
/freebsd/contrib/sendmail/libsm/
H A Dheap.c548 for (hp = &SmHeapTable[ptrhash(ptr)]; *hp != NULL; hp = &(**hp).hi_next)
554 hi = *hp;
569 *hp = hi->hi_next;
573 hi->hi_next = *hp;
574 *hp = hi;
618 for (hp = &SmHeapTable[ptrhash(ptr)]; *hp != NULL; hp = &(**hp).hi_next)
623 hi = *hp;
643 *hp = hi;
681 for (hp = &SmHeapTable[ptrhash(ptr)]; *hp != NULL; hp = &(**hp).hi_next)
732 SM_HEAP_ITEM_T *hp; local
[all …]
/freebsd/usr.bin/mail/
H A Dsend.c301 grabh(hp, GCC); in mail1()
303 grabh(hp, GBCC); in mail1()
323 to = usermap(cat(hp->h_bcc, cat(hp->h_to, hp->h_cc))); in mail1()
350 fixhead(hp, to); in mail1()
424 hp->h_to = NULL; in fixhead()
425 hp->h_cc = NULL; in fixhead()
426 hp->h_bcc = NULL; in fixhead()
432 hp->h_to = in fixhead()
435 hp->h_cc = in fixhead()
438 hp->h_bcc = in fixhead()
[all …]
/freebsd/usr.bin/rup/
H A Drup.c68 struct host_list *hp; in search_host() local
73 for (hp = hosts; hp != NULL; hp = hp->next) { in search_host()
83 struct host_list *hp; in remember_host() local
88 hp->next = hosts; in remember_host()
89 hosts = hp; in remember_host()
100 struct hostent *hp; in rstat_reply() local
109 if (hp) in rstat_reply()
110 host = hp->h_name; in rstat_reply()
168 struct hostent *hp; in onehost() local
171 hp = gethostbyname(host); in onehost()
[all …]
/freebsd/contrib/tcpdump/
H A Dprint-hsrp.c99 const struct hsrp *hp = (const struct hsrp *) bp; in hsrp_print() local
103 version = GET_U_1(hp->hsrp_version); in hsrp_print()
112 tok2str(states, "Unknown (%u)", GET_U_1(hp->hsrp_state))); in hsrp_print()
113 ND_PRINT("group=%u ", GET_U_1(hp->hsrp_group)); in hsrp_print()
114 if (GET_U_1(hp->hsrp_reserved) != 0) { in hsrp_print()
115 ND_PRINT("[reserved=%u!] ", GET_U_1(hp->hsrp_reserved)); in hsrp_print()
117 ND_PRINT("addr=%s", GET_IPADDR_STRING(hp->hsrp_virtaddr)); in hsrp_print()
120 unsigned_relts_print(ndo, GET_U_1(hp->hsrp_hellotime)); in hsrp_print()
122 unsigned_relts_print(ndo, GET_U_1(hp->hsrp_holdtime)); in hsrp_print()
123 ND_PRINT(" priority=%u", GET_U_1(hp->hsrp_priority)); in hsrp_print()
[all …]
/freebsd/sys/netgraph/
H A Dng_tag.c135 return (hp->tag_len); in ng_tag_hookinary_getLength()
146 return (hp->tag_len); in ng_tag_hookoutary_getLength()
401 struct ng_tag_hookin *hp; in ng_tag_rcvmsg() local
418 bcopy(hp, resp->data, in ng_tag_rcvmsg()
442 bcopy(hp, resp->data, in ng_tag_rcvmsg()
647 struct ng_tag_hookin *hp; in ng_tag_setdata_in() local
654 bcopy(hp0, hp, size); in ng_tag_setdata_in()
659 hip->in = hp; in ng_tag_setdata_in()
697 struct ng_tag_hookout *hp; in ng_tag_setdata_out() local
704 bcopy(hp0, hp, size); in ng_tag_setdata_out()
[all …]
/freebsd/usr.bin/rusers/
H A Drusers.c69 struct host_list *hp; in search_host() local
74 for (hp = hosts; hp != NULL; hp = hp->next) { in search_host()
84 struct host_list *hp; in remember_host() local
89 hp->next = hosts; in remember_host()
90 hosts = hp; in remember_host()
99 struct hostent *hp; in rusers_reply() local
114 if (hp != NULL) in rusers_reply()
115 host = hp->h_name; in rusers_reply()
179 struct hostent *hp; in onehost() local
182 hp = gethostbyname(host); in onehost()
[all …]

12345678910>>...17