Lines Matching refs:th_opcode
824 tp->th_opcode = ntohs(tp->th_opcode); in main()
825 if(tp->th_opcode == opcode_RRQ || tp->th_opcode == opcode_WRQ) { in main()
916 fprintf(server, "opcode = %x\n", tp->th_opcode); in do_tftp()
979 ecode = validate_access(test, filename, tp->th_opcode); in do_tftp()
994 if(tp->th_opcode == opcode_WRQ) in do_tftp()
1184 sdp->th_opcode = htons(opcode_DATA); in sendtftp()
1219 sap->th_opcode = ntohs(sap->th_opcode); in sendtftp()
1222 if(sap->th_opcode == opcode_ERROR) { in sendtftp()
1227 if(sap->th_opcode == opcode_ACK) { in sendtftp()
1262 rap->th_opcode = htons(opcode_ACK); in recvtftp()
1291 rdp->th_opcode = ntohs(rdp->th_opcode); in recvtftp()
1293 if(rdp->th_opcode == opcode_ERROR) in recvtftp()
1295 if(rdp->th_opcode == opcode_DATA) { in recvtftp()
1322 rap->th_opcode = htons(opcode_ACK); /* send the "final" ack */ in recvtftp()
1337 rdp->th_opcode == opcode_DATA && /* and got a data block */ in recvtftp()
1361 tp->th_opcode = htons(opcode_ERROR); in nak()