Lines Matching defs:rpl

180 	struct rmp_packet *rpl;
184 rpl = &rconn->rmp; /* cache ptr to RMP packet */
189 rpl->r_brpl.rmp_type = RMP_BOOT_REPL;
190 rpl->r_brpl.rmp_retcode = RMP_E_OKAY;
191 ZEROWORD(rpl->r_brpl.rmp_seqno);
192 rpl->r_brpl.rmp_session = 0;
193 rpl->r_brpl.rmp_version = htons(RMP_VERSION);
195 size = &rpl->r_brpl.rmp_flnmsize; /* ptr to length of host name */
202 dst = (char *) &rpl->r_brpl.rmp_flnm;
231 struct rmp_packet *rpl;
237 rpl = &rconn->rmp; /* cache ptr to RMP packet */
242 rpl->r_brpl.rmp_type = RMP_BOOT_REPL;
243 PUTWORD(i, rpl->r_brpl.rmp_seqno);
245 rpl->r_brpl.rmp_session = 0;
246 rpl->r_brpl.rmp_version = htons(RMP_VERSION);
248 size = &rpl->r_brpl.rmp_flnmsize; /* ptr to length of filename */
259 dst = (char *)&rpl->r_brpl.rmp_flnm;
265 rpl->r_brpl.rmp_retcode = RMP_E_OKAY;
267 rpl->r_brpl.rmp_retcode = RMP_E_NODFLT;
294 struct rmp_packet *rpl;
308 rpl = &rconn->rmp; /* cache ptr to RMP packet */
313 rpl->r_brpl.rmp_type = RMP_BOOT_REPL;
314 COPYWORD(req->r_brq.rmp_seqno, rpl->r_brpl.rmp_seqno);
315 rpl->r_brpl.rmp_session = htons(GenSessID());
316 rpl->r_brpl.rmp_version = htons(RMP_VERSION);
317 rpl->r_brpl.rmp_flnmsize = req->r_brq.rmp_flnmsize;
324 dst2 = &rpl->r_brpl.rmp_flnm;
349 rpl->r_brpl.rmp_retcode = RMP_E_NOFILE;
364 rpl->r_brpl.rmp_retcode = (errno == ENOENT)? RMP_E_NOFILE:
369 rpl->r_brpl.rmp_retcode = RMP_E_OKAY;
377 rconn->rmplen = RMPBOOTSIZE(rpl->r_brpl.rmp_flnmsize);
399 struct rmp_packet *rpl, *req;
416 rpl = &oldconn->rmp; /* cache ptr to reply packet */
419 rpl->r_rrpl.rmp_retcode = RMP_E_ABORT;
428 ((rpl->r_type == RMP_BOOT_REPL)? ntohs(rpl->r_brpl.rmp_session):
429 ntohs(rpl->r_rrpl.rmp_session))) {
432 rpl->r_rrpl.rmp_retcode = RMP_E_BADSID;
455 rpl->r_rrpl.rmp_retcode = RMP_E_ABORT;
463 if ((size = read(oldconn->bootfd, &rpl->r_rrpl.rmp_data,
468 rpl->r_rrpl.rmp_retcode = RMP_E_ABORT;
470 rpl->r_rrpl.rmp_retcode = RMP_E_EOF;
479 rpl->r_rrpl.rmp_retcode = RMP_E_OKAY;
485 rpl->r_rrpl.rmp_type = RMP_READ_REPL;
486 COPYWORD(req->r_rrq.rmp_offset, rpl->r_rrpl.rmp_offset);
487 rpl->r_rrpl.rmp_session = req->r_rrq.rmp_session;
515 struct rmp_packet *rpl;
526 rpl = &oldconn->rmp; /* cache ptr to RMP packet */
532 ((rpl->r_type == RMP_BOOT_REPL)? ntohs(rpl->r_brpl.rmp_session):
533 ntohs(rpl->r_rrpl.rmp_session))) {