Lines Matching defs:hp

56 	struct host *hp;
114 for (hp = (struct host *) hash_FirstEntry(nmhashtable); hp != NULL;
115 hp = (struct host *) hash_NextEntry(nmhashtable)) {
116 dump_host(fp, hp);
129 * Dump all the available information on the host pointed to by "hp".
134 dump_host(fp, hp)
136 struct host *hp;
139 if (hp) {
140 fprintf(fp, "%s:", (hp->hostname ?
141 hp->hostname->string : "?"));
142 if (hp->flags.bootfile) {
143 fprintf(fp, "\\\n\t:bf=%s:", hp->bootfile->string);
145 if (hp->flags.bootsize) {
147 if (hp->flags.bootsize_auto) {
150 fprintf(fp, "%lu:", (u_long)hp->bootsize);
153 if (hp->flags.cookie_server) {
155 list_ipaddresses(fp, hp->cookie_server);
158 if (hp->flags.dump_file) {
159 fprintf(fp, "\\\n\t:df=%s:", hp->dump_file->string);
161 if (hp->flags.domain_name) {
162 fprintf(fp, "\\\n\t:dn=%s:", hp->domain_name->string);
164 if (hp->flags.domain_server) {
166 list_ipaddresses(fp, hp->domain_server);
169 if (hp->flags.exten_file) {
170 fprintf(fp, "\\\n\t:ef=%s:", hp->exten_file->string);
172 if (hp->flags.exec_file) {
173 fprintf(fp, "\\\n\t:ex=%s:", hp->exec_file->string);
175 if (hp->flags.gateway) {
177 list_ipaddresses(fp, hp->gateway);
181 if (hp->flags.homedir) {
182 fprintf(fp, "\\\n\t:hd=%s:", hp->homedir->string);
187 if (hp->flags.name_switch && hp->flags.send_name) {
190 if (hp->flags.htype) {
191 int hlen = haddrlength(hp->htype);
192 fprintf(fp, "\\\n\t:ht=%u:", (unsigned) hp->htype);
193 if (hp->flags.haddr) {
195 haddrtoa(hp->haddr, hlen));
198 if (hp->flags.impress_server) {
200 list_ipaddresses(fp, hp->impress_server);
204 if (hp->flags.iaddr) {
205 fprintf(fp, "\\\n\t:ip=%s:", inet_ntoa(hp->iaddr));
207 if (hp->flags.log_server) {
209 list_ipaddresses(fp, hp->log_server);
212 if (hp->flags.lpr_server) {
214 list_ipaddresses(fp, hp->lpr_server);
217 if (hp->flags.msg_size) {
218 fprintf(fp, "\\\n\t:ms=%lu:", (u_long)hp->msg_size);
220 if (hp->flags.min_wait) {
221 fprintf(fp, "\\\n\t:mw=%lu:", (u_long)hp->min_wait);
223 if (hp->flags.name_server) {
225 list_ipaddresses(fp, hp->name_server);
228 if (hp->flags.ntp_server) {
230 list_ipaddresses(fp, hp->ntp_server);
233 if (hp->flags.reply_addr) {
234 fprintf(fp, "\\\n\t:ra=%s:", inet_ntoa(hp->reply_addr));
236 if (hp->flags.rlp_server) {
238 list_ipaddresses(fp, hp->rlp_server);
241 if (hp->flags.root_path) {
242 fprintf(fp, "\\\n\t:rp=%s:", hp->root_path->string);
244 if (hp->flags.bootserver) {
245 fprintf(fp, "\\\n\t:sa=%s:", inet_ntoa(hp->bootserver));
247 if (hp->flags.subnet_mask) {
248 fprintf(fp, "\\\n\t:sm=%s:", inet_ntoa(hp->subnet_mask));
250 if (hp->flags.swap_server) {
251 fprintf(fp, "\\\n\t:sw=%s:", inet_ntoa(hp->subnet_mask));
253 if (hp->flags.tftpdir) {
254 fprintf(fp, "\\\n\t:td=%s:", hp->tftpdir->string);
259 if (hp->flags.time_offset) {
260 fprintf(fp, "\\\n\t:to=%ld:", (long)hp->time_offset);
262 if (hp->flags.time_server) {
264 list_ipaddresses(fp, hp->time_server);
267 if (hp->flags.vm_cookie) {
269 if (!bcmp(hp->vm_cookie, vm_rfc1048, 4)) {
271 } else if (!bcmp(hp->vm_cookie, vm_cmu, 4)) {
275 (int) ((hp->vm_cookie)[0]),
276 (int) ((hp->vm_cookie)[1]),
277 (int) ((hp->vm_cookie)[2]),
278 (int) ((hp->vm_cookie)[3]));
281 if (hp->flags.nis_domain) {
283 hp->nis_domain->string);
285 if (hp->flags.nis_server) {
287 list_ipaddresses(fp, hp->nis_server);
295 if (hp->flags.generic) {
296 dump_generic(fp, hp->generic);