Lines Matching refs:th_opcode
883 tp->th_opcode = ntohs(tp->th_opcode);
884 if (tp->th_opcode == opcode_RRQ || tp->th_opcode == opcode_WRQ) {
975 fprintf(server, "opcode: %x\n", tp->th_opcode);
1013 ecode = validate_access(test, filename, tp->th_opcode);
1028 if (tp->th_opcode == opcode_WRQ)
1230 sdp->th_opcode = htons((unsigned short)opcode_DATA);
1262 sap->th_opcode = ntohs((unsigned short)sap->th_opcode);
1265 if (sap->th_opcode == opcode_ERROR) {
1270 if (sap->th_opcode == opcode_ACK) {
1304 rap->th_opcode = htons((unsigned short)opcode_ACK);
1330 rdp->th_opcode = ntohs((unsigned short)rdp->th_opcode);
1332 if (rdp->th_opcode == opcode_ERROR)
1334 if (rdp->th_opcode == opcode_DATA) {
1356 rap->th_opcode = htons((unsigned short)opcode_ACK); /* send the "final" ack */
1371 rdp->th_opcode == opcode_DATA && /* and got a data block */
1390 tp->th_opcode = htons((unsigned short)opcode_ERROR);