Lines Matching full:hp
45 struct host *hp; in dumptab() local
103 for (hp = (struct host *) hash_FirstEntry(nmhashtable); hp != NULL; in dumptab()
104 hp = (struct host *) hash_NextEntry(nmhashtable)) { in dumptab()
105 dump_host(fp, hp); in dumptab()
117 * Dump all the available information on the host pointed to by "hp".
122 dump_host(FILE *fp, struct host *hp) in dump_host() argument
125 if (hp) { in dump_host()
126 fprintf(fp, "%s:", (hp->hostname ? in dump_host()
127 hp->hostname->string : "?")); in dump_host()
128 if (hp->flags.bootfile) { in dump_host()
129 fprintf(fp, "\\\n\t:bf=%s:", hp->bootfile->string); in dump_host()
131 if (hp->flags.bootsize) { in dump_host()
133 if (hp->flags.bootsize_auto) { in dump_host()
136 fprintf(fp, "%lu:", (u_long)hp->bootsize); in dump_host()
139 if (hp->flags.cookie_server) { in dump_host()
141 list_ipaddresses(fp, hp->cookie_server); in dump_host()
144 if (hp->flags.dump_file) { in dump_host()
145 fprintf(fp, "\\\n\t:df=%s:", hp->dump_file->string); in dump_host()
147 if (hp->flags.domain_name) { in dump_host()
148 fprintf(fp, "\\\n\t:dn=%s:", hp->domain_name->string); in dump_host()
150 if (hp->flags.domain_server) { in dump_host()
152 list_ipaddresses(fp, hp->domain_server); in dump_host()
155 if (hp->flags.exten_file) { in dump_host()
156 fprintf(fp, "\\\n\t:ef=%s:", hp->exten_file->string); in dump_host()
158 if (hp->flags.exec_file) { in dump_host()
159 fprintf(fp, "\\\n\t:ex=%s:", hp->exec_file->string); in dump_host()
161 if (hp->flags.gateway) { in dump_host()
163 list_ipaddresses(fp, hp->gateway); in dump_host()
167 if (hp->flags.homedir) { in dump_host()
168 fprintf(fp, "\\\n\t:hd=%s:", hp->homedir->string); in dump_host()
173 if (hp->flags.name_switch && hp->flags.send_name) { in dump_host()
176 if (hp->flags.htype) { in dump_host()
177 int hlen = haddrlength(hp->htype); in dump_host()
178 fprintf(fp, "\\\n\t:ht=%u:", (unsigned) hp->htype); in dump_host()
179 if (hp->flags.haddr) { in dump_host()
181 haddrtoa(hp->haddr, hlen)); in dump_host()
184 if (hp->flags.impress_server) { in dump_host()
186 list_ipaddresses(fp, hp->impress_server); in dump_host()
190 if (hp->flags.iaddr) { in dump_host()
191 fprintf(fp, "\\\n\t:ip=%s:", inet_ntoa(hp->iaddr)); in dump_host()
193 if (hp->flags.log_server) { in dump_host()
195 list_ipaddresses(fp, hp->log_server); in dump_host()
198 if (hp->flags.lpr_server) { in dump_host()
200 list_ipaddresses(fp, hp->lpr_server); in dump_host()
203 if (hp->flags.msg_size) { in dump_host()
204 fprintf(fp, "\\\n\t:ms=%lu:", (u_long)hp->msg_size); in dump_host()
206 if (hp->flags.min_wait) { in dump_host()
207 fprintf(fp, "\\\n\t:mw=%lu:", (u_long)hp->min_wait); in dump_host()
209 if (hp->flags.name_server) { in dump_host()
211 list_ipaddresses(fp, hp->name_server); in dump_host()
214 if (hp->flags.ntp_server) { in dump_host()
216 list_ipaddresses(fp, hp->ntp_server); in dump_host()
219 if (hp->flags.reply_addr) { in dump_host()
220 fprintf(fp, "\\\n\t:ra=%s:", inet_ntoa(hp->reply_addr)); in dump_host()
222 if (hp->flags.rlp_server) { in dump_host()
224 list_ipaddresses(fp, hp->rlp_server); in dump_host()
227 if (hp->flags.root_path) { in dump_host()
228 fprintf(fp, "\\\n\t:rp=%s:", hp->root_path->string); in dump_host()
230 if (hp->flags.bootserver) { in dump_host()
231 fprintf(fp, "\\\n\t:sa=%s:", inet_ntoa(hp->bootserver)); in dump_host()
233 if (hp->flags.subnet_mask) { in dump_host()
234 fprintf(fp, "\\\n\t:sm=%s:", inet_ntoa(hp->subnet_mask)); in dump_host()
236 if (hp->flags.swap_server) { in dump_host()
237 fprintf(fp, "\\\n\t:sw=%s:", inet_ntoa(hp->subnet_mask)); in dump_host()
239 if (hp->flags.tftpdir) { in dump_host()
240 fprintf(fp, "\\\n\t:td=%s:", hp->tftpdir->string); in dump_host()
245 if (hp->flags.time_offset) { in dump_host()
246 fprintf(fp, "\\\n\t:to=%ld:", (long)hp->time_offset); in dump_host()
248 if (hp->flags.time_server) { in dump_host()
250 list_ipaddresses(fp, hp->time_server); in dump_host()
253 if (hp->flags.vm_cookie) { in dump_host()
255 if (!bcmp(hp->vm_cookie, vm_rfc1048, 4)) { in dump_host()
257 } else if (!bcmp(hp->vm_cookie, vm_cmu, 4)) { in dump_host()
261 (int) ((hp->vm_cookie)[0]), in dump_host()
262 (int) ((hp->vm_cookie)[1]), in dump_host()
263 (int) ((hp->vm_cookie)[2]), in dump_host()
264 (int) ((hp->vm_cookie)[3])); in dump_host()
267 if (hp->flags.nis_domain) { in dump_host()
269 hp->nis_domain->string); in dump_host()
271 if (hp->flags.nis_server) { in dump_host()
273 list_ipaddresses(fp, hp->nis_server); in dump_host()
281 if (hp->flags.generic) { in dump_host()
282 dump_generic(fp, hp->generic); in dump_host()