Lines Matching refs:th_opcode
199 tp->th_opcode = ntohs(tp->th_opcode);
200 if (tp->th_opcode == RRQ || tp->th_opcode == WRQ)
256 ecode = (*pf->f_validate)(filename, tp->th_opcode);
261 if (tp->th_opcode == WRQ)
366 dp->th_opcode = htons((u_short)DATA);
386 ap->th_opcode = ntohs((u_short)ap->th_opcode);
389 if (ap->th_opcode == ERROR)
392 if (ap->th_opcode == ACK) {
432 ap->th_opcode = htons((u_short)ACK);
451 dp->th_opcode = ntohs((u_short)dp->th_opcode);
453 if (dp->th_opcode == ERROR)
455 if (dp->th_opcode == DATA) {
477 ap->th_opcode = htons((u_short)ACK); /* send the "final" ack */
486 dp->th_opcode == DATA && /* and got a data block */
522 tp->th_opcode = htons((u_short)ERROR);