Lines Matching defs:rpl

168 	struct rmp_packet *rpl;
172 rpl = &rconn->rmp; /* cache ptr to RMP packet */
177 rpl->r_brpl.rmp_type = RMP_BOOT_REPL;
178 rpl->r_brpl.rmp_retcode = RMP_E_OKAY;
179 ZEROWORD(rpl->r_brpl.rmp_seqno);
180 rpl->r_brpl.rmp_session = 0;
181 rpl->r_brpl.rmp_version = htons(RMP_VERSION);
183 size = &rpl->r_brpl.rmp_flnmsize; /* ptr to length of host name */
190 dst = (char *) &rpl->r_brpl.rmp_flnm;
219 struct rmp_packet *rpl;
225 rpl = &rconn->rmp; /* cache ptr to RMP packet */
230 rpl->r_brpl.rmp_type = RMP_BOOT_REPL;
231 PUTWORD(i, rpl->r_brpl.rmp_seqno);
233 rpl->r_brpl.rmp_session = 0;
234 rpl->r_brpl.rmp_version = htons(RMP_VERSION);
236 size = &rpl->r_brpl.rmp_flnmsize; /* ptr to length of filename */
247 dst = (char *)&rpl->r_brpl.rmp_flnm;
253 rpl->r_brpl.rmp_retcode = RMP_E_OKAY;
255 rpl->r_brpl.rmp_retcode = RMP_E_NODFLT;
282 struct rmp_packet *rpl;
296 rpl = &rconn->rmp; /* cache ptr to RMP packet */
301 rpl->r_brpl.rmp_type = RMP_BOOT_REPL;
302 COPYWORD(req->r_brq.rmp_seqno, rpl->r_brpl.rmp_seqno);
303 rpl->r_brpl.rmp_session = htons(GenSessID());
304 rpl->r_brpl.rmp_version = htons(RMP_VERSION);
305 rpl->r_brpl.rmp_flnmsize = req->r_brq.rmp_flnmsize;
312 dst2 = &rpl->r_brpl.rmp_flnm;
338 rpl->r_brpl.rmp_retcode = RMP_E_NOFILE;
353 rpl->r_brpl.rmp_retcode = (errno == ENOENT)? RMP_E_NOFILE:
358 rpl->r_brpl.rmp_retcode = RMP_E_OKAY;
366 rconn->rmplen = RMPBOOTSIZE(rpl->r_brpl.rmp_flnmsize);
388 struct rmp_packet *rpl, *req;
405 rpl = &oldconn->rmp; /* cache ptr to reply packet */
408 rpl->r_rrpl.rmp_retcode = RMP_E_ABORT;
417 ((rpl->r_type == RMP_BOOT_REPL)? ntohs(rpl->r_brpl.rmp_session):
418 ntohs(rpl->r_rrpl.rmp_session))) {
421 rpl->r_rrpl.rmp_retcode = RMP_E_BADSID;
444 rpl->r_rrpl.rmp_retcode = RMP_E_ABORT;
452 if ((size = read(oldconn->bootfd, &rpl->r_rrpl.rmp_data,
457 rpl->r_rrpl.rmp_retcode = RMP_E_ABORT;
459 rpl->r_rrpl.rmp_retcode = RMP_E_EOF;
468 rpl->r_rrpl.rmp_retcode = RMP_E_OKAY;
474 rpl->r_rrpl.rmp_type = RMP_READ_REPL;
475 COPYWORD(req->r_rrq.rmp_offset, rpl->r_rrpl.rmp_offset);
476 rpl->r_rrpl.rmp_session = req->r_rrq.rmp_session;
504 struct rmp_packet *rpl;
515 rpl = &oldconn->rmp; /* cache ptr to RMP packet */
521 ((rpl->r_type == RMP_BOOT_REPL)? ntohs(rpl->r_brpl.rmp_session):
522 ntohs(rpl->r_rrpl.rmp_session))) {