Lines Matching refs:hp
45 dovend_rfc1497(struct host *hp, byte *buf, int len)
57 hp->hostname->string, MSG); \
74 if (hp->flags.time_offset) {
78 insert_u_long(htonl(hp->time_offset), &vp); /* -4 bytes */
84 if (hp->flags.swap_server) {
89 insert_u_long(hp->swap_server.s_addr, &vp); /* -4 bytes */
92 if (hp->flags.root_path) {
97 len = strlen(hp->root_path->string);
101 bcopy(hp->root_path->string, vp, len);
105 if (hp->flags.dump_file) {
110 len = strlen(hp->dump_file->string);
114 bcopy(hp->dump_file->string, vp, len);
121 if (hp->flags.domain_server) {
123 hp->domain_server,
127 if (hp->flags.domain_name) {
132 len = strlen(hp->domain_name->string);
136 bcopy(hp->domain_name->string, vp, len);
143 if (hp->flags.nis_server) {
145 hp->nis_server,
149 if (hp->flags.nis_domain) {
154 len = strlen(hp->nis_domain->string);
158 bcopy(hp->nis_domain->string, vp, len);
163 if (hp->flags.name_server) {
165 hp->name_server,
169 if (hp->flags.rlp_server) {
171 hp->rlp_server,
176 if (hp->flags.time_server) {
178 hp->time_server,
183 if (hp->flags.ntp_server) {
185 hp->ntp_server,
199 if (hp->flags.name_switch && hp->flags.send_name) {
204 len = strlen(hp->hostname->string);
215 tmpstr = hp->hostname->string;
226 bcopy(hp->hostname->string, vp, len);
233 if (hp->flags.lpr_server) {
235 hp->lpr_server,
239 if (hp->flags.cookie_server) {
241 hp->cookie_server,
245 if (hp->flags.log_server) {
247 hp->log_server,
254 if (hp->flags.generic) {
255 if (insert_generic(hp->generic, &vp, &bytesleft))