Lines Matching refs:th_opcode
823 tp->th_opcode = ntohs(tp->th_opcode);
824 if(tp->th_opcode == opcode_RRQ || tp->th_opcode == opcode_WRQ) {
915 fprintf(server, "opcode = %x\n", tp->th_opcode);
978 ecode = validate_access(test, filename, tp->th_opcode);
993 if(tp->th_opcode == opcode_WRQ)
1183 sdp->th_opcode = htons((unsigned short)opcode_DATA);
1218 sap->th_opcode = ntohs((unsigned short)sap->th_opcode);
1221 if(sap->th_opcode == opcode_ERROR) {
1226 if(sap->th_opcode == opcode_ACK) {
1261 rap->th_opcode = htons((unsigned short)opcode_ACK);
1290 rdp->th_opcode = ntohs((unsigned short)rdp->th_opcode);
1292 if(rdp->th_opcode == opcode_ERROR)
1294 if(rdp->th_opcode == opcode_DATA) {
1321 rap->th_opcode = htons((unsigned short)opcode_ACK); /* send the "final"
1337 rdp->th_opcode == opcode_DATA && /* and got a data block */
1361 tp->th_opcode = htons((unsigned short)opcode_ERROR);