Lines Matching refs:th_opcode
441 tp->th_opcode = ntohs(tp->th_opcode); in main()
442 if (tp->th_opcode == RRQ || tp->th_opcode == WRQ) in main()
465 tp->th_opcode == WRQ ? "write" : "read", in blk_handler()
474 tp->th_opcode == WRQ ? "write" : "read", in blk_handler()
506 tp->th_opcode == WRQ ? "write" : "read", in timeout_handler()
515 tp->th_opcode == WRQ ? "write" : "read", in timeout_handler()
560 tp->th_opcode == WRQ ? "write" : "read", in tsize_handler()
569 tp->th_opcode == WRQ ? "write" : "read", in tsize_handler()
720 ecode = (*pf->f_validate)(&filename, tp->th_opcode); in tftp()
724 tp->th_opcode == WRQ ? "write" : "read", in tftp()
751 oack_h->th_opcode = htons(OACK); in tftp()
754 if (tp->th_opcode == WRQ) in tftp()
975 dp->th_opcode = htons((u_short)DATA); in sendfile()
999 ap->th_opcode = ntohs((u_short)ap->th_opcode); in sendfile()
1001 switch (ap->th_opcode) { in sendfile()
1024 opcode(dp->th_opcode)); in sendfile()
1067 ap->th_opcode = htons((u_short)ACK); in recvfile()
1095 dp->th_opcode = ntohs((u_short)dp->th_opcode); in recvfile()
1099 opcode(dp->th_opcode), in recvfile()
1102 switch (dp->th_opcode) { in recvfile()
1118 opcode(dp->th_opcode)); in recvfile()
1136 ap->th_opcode = htons((u_short)ACK); /* send the "final" ack */ in recvfile()
1147 dp->th_opcode == DATA && /* and got a data block */ in recvfile()
1201 tp->th_opcode = htons((u_short)ERROR); in nak()