Lines Matching defs:hp

633 	struct host *hp = NULL;
691 hp = (struct host *) hash_Lookup(hwhashtable, hashcode, hwlookcmp,
693 if (hp == NULL &&
704 hp = (struct host *) hash_Lookup(hwhashtable, hashcode,
707 if (hp == NULL) {
717 (bp->bp_yiaddr).s_addr = hp->iaddr.s_addr;
730 hp = (struct host *) hash_Lookup(iphashtable, hashcode, iplookcmp,
732 if (hp == NULL) {
742 report(LOG_INFO, "found %s (%s)", inet_ntoa(hp->iaddr),
743 hp->hostname->string);
750 if (hp->flags.min_wait) {
752 if (t < hp->min_wait) {
756 t, hp->min_wait);
773 if (hp->flags.exec_file) {
776 strcpy (tst, hp->exec_file->string);
778 strcat (tst, hp->hostname->string);
791 (bp->bp_siaddr).s_addr = (hp->flags.bootserver) ?
792 hp->bootserver.s_addr : 0L;
846 if (hp->flags.tftpdir) {
847 snprintf(realpath, sizeof(realpath), "%s", hp->tftpdir->string);
881 if (hp->flags.homedir)
882 homedir = hp->homedir->string;
883 if (hp->flags.bootfile)
884 bootfile = hp->bootfile->string;
907 strcat(clntpath, hp->hostname->string);
934 if (hp->flags.bootsize_auto) {
968 if (hp->flags.vm_cookie) {
970 bcopy(hp->vm_cookie, bp->bp_vend, 4);
978 dovend_rfc1048(bp, hp, bootsize);
985 dovend_cmu(bp, hp);
997 dest = (hp->flags.reply_addr) ?
998 hp->reply_addr.s_addr : 0L;
1167 * Insert the CMU "vendor" data for the host pointed to by "hp" into the
1172 dovend_cmu(bp, hp)
1174 struct host *hp;
1190 if (hp->flags.subnet_mask) {
1191 (vendp->v_smask).s_addr = hp->subnet_mask.s_addr;
1193 if (hp->flags.gateway) {
1194 (vendp->v_dgate).s_addr = hp->gateway->addr->s_addr;
1197 if (hp->flags.domain_server) {
1198 taddr = hp->domain_server;
1206 if (hp->flags.name_server) {
1207 taddr = hp->name_server;
1215 if (hp->flags.time_server) {
1216 taddr = hp->time_server;
1233 * Insert the RFC1048 vendor data for the host pointed to by "hp" into the
1239 hp->hostname->string, MSG); \
1243 dovend_rfc1048(bp, hp, bootsize)
1245 struct host *hp;
1255 if (hp->flags.msg_size) {
1256 pktlen = hp->msg_size;
1328 if (hp->flags.subnet_mask) {
1332 insert_u_long(hp->subnet_mask.s_addr, &vp); /* -4 bytes */
1334 if (hp->flags.gateway) {
1336 hp->gateway,
1340 if (hp->flags.bootsize) {
1342 bootsize = (hp->flags.bootsize_auto) ?
1343 ((bootsize + 511) / 512) : (hp->bootsize); /* Round up */
1354 if (hp->flags.exten_file) {
1359 len = strlen(hp->exten_file->string);
1363 bcopy(hp->exten_file->string, vp, len);
1374 len = dovend_rfc1497(hp, vp, bytesleft - 1);