Home | History | Annotate | Download | only in rbootd

Lines Matching defs:rpl

178 	struct rmp_packet *rpl;
182 rpl = &rconn->rmp; /* cache ptr to RMP packet */
187 rpl->r_brpl.rmp_type = RMP_BOOT_REPL;
188 rpl->r_brpl.rmp_retcode = RMP_E_OKAY;
189 ZEROWORD(rpl->r_brpl.rmp_seqno);
190 rpl->r_brpl.rmp_session = 0;
191 rpl->r_brpl.rmp_version = htons(RMP_VERSION);
193 size = &rpl->r_brpl.rmp_flnmsize; /* ptr to length of host name */
200 dst = (char *) &rpl->r_brpl.rmp_flnm;
229 struct rmp_packet *rpl;
235 rpl = &rconn->rmp; /* cache ptr to RMP packet */
240 rpl->r_brpl.rmp_type = RMP_BOOT_REPL;
241 PUTWORD(i, rpl->r_brpl.rmp_seqno);
243 rpl->r_brpl.rmp_session = 0;
244 rpl->r_brpl.rmp_version = htons(RMP_VERSION);
246 size = &rpl->r_brpl.rmp_flnmsize; /* ptr to length of filename */
257 dst = (char *)&rpl->r_brpl.rmp_flnm;
263 rpl->r_brpl.rmp_retcode = RMP_E_OKAY;
265 rpl->r_brpl.rmp_retcode = RMP_E_NODFLT;
292 struct rmp_packet *rpl;
306 rpl = &rconn->rmp; /* cache ptr to RMP packet */
311 rpl->r_brpl.rmp_type = RMP_BOOT_REPL;
312 COPYWORD(req->r_brq.rmp_seqno, rpl->r_brpl.rmp_seqno);
313 rpl->r_brpl.rmp_session = htons(GenSessID());
314 rpl->r_brpl.rmp_version = htons(RMP_VERSION);
315 rpl->r_brpl.rmp_flnmsize = req->r_brq.rmp_flnmsize;
321 dst2 = &rpl->r_brpl.rmp_flnm;
356 rpl->r_brpl.rmp_retcode = RMP_E_NOFILE;
371 rpl->r_brpl.rmp_retcode = (errno == ENOENT)? RMP_E_NOFILE:
376 rpl->r_brpl.rmp_retcode = RMP_E_OKAY;
384 rconn->rmplen = RMPBOOTSIZE(rpl->r_brpl.rmp_flnmsize);
406 struct rmp_packet *rpl, *req;
423 rpl = &oldconn->rmp; /* cache ptr to reply packet */
426 rpl->r_rrpl.rmp_retcode = RMP_E_ABORT;
435 ((rpl->r_type == RMP_BOOT_REPL)? ntohs(rpl->r_brpl.rmp_session):
436 ntohs(rpl->r_rrpl.rmp_session))) {
439 rpl->r_rrpl.rmp_retcode = RMP_E_BADSID;
462 rpl->r_rrpl.rmp_retcode = RMP_E_ABORT;
470 if ((size = read(oldconn->bootfd, &rpl->r_rrpl.rmp_data,
475 rpl->r_rrpl.rmp_retcode = RMP_E_ABORT;
477 rpl->r_rrpl.rmp_retcode = RMP_E_EOF;
486 rpl->r_rrpl.rmp_retcode = RMP_E_OKAY;
492 rpl->r_rrpl.rmp_type = RMP_READ_REPL;
493 COPYWORD(req->r_rrq.rmp_offset, rpl->r_rrpl.rmp_offset);
494 rpl->r_rrpl.rmp_session = req->r_rrq.rmp_session;
522 struct rmp_packet *rpl;
533 rpl = &oldconn->rmp; /* cache ptr to RMP packet */
539 ((rpl->r_type == RMP_BOOT_REPL)? ntohs(rpl->r_brpl.rmp_session):
540 ntohs(rpl->r_rrpl.rmp_session))) {