Lines Matching refs:hp

621 	struct host *hp = NULL;  in handle_request()  local
679 hp = (struct host *) hash_Lookup(hwhashtable, hashcode, hwlookcmp, in handle_request()
681 if (hp == NULL && in handle_request()
692 hp = (struct host *) hash_Lookup(hwhashtable, hashcode, in handle_request()
695 if (hp == NULL) { in handle_request()
705 (bp->bp_yiaddr).s_addr = hp->iaddr.s_addr; in handle_request()
718 hp = (struct host *) hash_Lookup(iphashtable, hashcode, iplookcmp, in handle_request()
720 if (hp == NULL) { in handle_request()
730 report(LOG_INFO, "found %s (%s)", inet_ntoa(hp->iaddr), in handle_request()
731 hp->hostname->string); in handle_request()
738 if (hp->flags.min_wait) { in handle_request()
740 if (t < hp->min_wait) { in handle_request()
744 t, hp->min_wait); in handle_request()
761 if (hp->flags.exec_file) { in handle_request()
764 strcpy (tst, hp->exec_file->string); in handle_request()
766 strcat (tst, hp->hostname->string); in handle_request()
779 (bp->bp_siaddr).s_addr = (hp->flags.bootserver) ? in handle_request()
780 hp->bootserver.s_addr : 0L; in handle_request()
834 if (hp->flags.tftpdir) { in handle_request()
835 snprintf(realpath, sizeof(realpath), "%s", hp->tftpdir->string); in handle_request()
869 if (hp->flags.homedir) in handle_request()
870 homedir = hp->homedir->string; in handle_request()
871 if (hp->flags.bootfile) in handle_request()
872 bootfile = hp->bootfile->string; in handle_request()
895 strcat(clntpath, hp->hostname->string); in handle_request()
922 if (hp->flags.bootsize_auto) { in handle_request()
955 if (hp->flags.vm_cookie) { in handle_request()
957 bcopy(hp->vm_cookie, bp->bp_vend, 4); in handle_request()
965 dovend_rfc1048(bp, hp, bootsize); in handle_request()
972 dovend_cmu(bp, hp); in handle_request()
984 dest = (hp->flags.reply_addr) ? in handle_request()
985 hp->reply_addr.s_addr : 0L; in handle_request()
1155 dovend_cmu(struct bootp *bp, struct host *hp) in dovend_cmu() argument
1171 if (hp->flags.subnet_mask) { in dovend_cmu()
1172 (vendp->v_smask).s_addr = hp->subnet_mask.s_addr; in dovend_cmu()
1174 if (hp->flags.gateway) { in dovend_cmu()
1175 (vendp->v_dgate).s_addr = hp->gateway->addr->s_addr; in dovend_cmu()
1178 if (hp->flags.domain_server) { in dovend_cmu()
1179 taddr = hp->domain_server; in dovend_cmu()
1187 if (hp->flags.name_server) { in dovend_cmu()
1188 taddr = hp->name_server; in dovend_cmu()
1196 if (hp->flags.time_server) { in dovend_cmu()
1197 taddr = hp->time_server; in dovend_cmu()
1219 hp->hostname->string, MSG); \
1223 dovend_rfc1048(struct bootp *bp, struct host *hp, int32 bootsize) in dovend_rfc1048() argument
1232 if (hp->flags.msg_size) { in dovend_rfc1048()
1233 pktlen = hp->msg_size; in dovend_rfc1048()
1305 if (hp->flags.subnet_mask) { in dovend_rfc1048()
1309 insert_u_long(hp->subnet_mask.s_addr, &vp); /* -4 bytes */ in dovend_rfc1048()
1311 if (hp->flags.gateway) { in dovend_rfc1048()
1313 hp->gateway, in dovend_rfc1048()
1317 if (hp->flags.bootsize) { in dovend_rfc1048()
1319 bootsize = (hp->flags.bootsize_auto) ? in dovend_rfc1048()
1320 ((bootsize + 511) / 512) : (hp->bootsize); /* Round up */ in dovend_rfc1048()
1331 if (hp->flags.exten_file) { in dovend_rfc1048()
1336 len = strlen(hp->exten_file->string); in dovend_rfc1048()
1340 bcopy(hp->exten_file->string, vp, len); in dovend_rfc1048()
1351 len = dovend_rfc1497(hp, vp, bytesleft - 1); in dovend_rfc1048()