Lines Matching refs:opcode
113 uint16_t opcode; in tftp_send_ack() member
381 int opcode; in handle_reader() local
400 opcode = buf[0] << 8 | buf[1]; in handle_reader()
401 if (opcode == OP_ERROR) { in handle_reader()
405 } else if (opcode != OP_ACK) { in handle_reader()
406 printf("[TQFTP] Expected ACK, got %d\n", opcode); in handle_reader()
436 int opcode; in handle_writer() local
453 opcode = buf[0] << 8 | buf[1]; in handle_writer()
455 if (opcode != OP_DATA) { in handle_writer()
456 printf("[TQFTP] Expected DATA opcode, got %d\n", opcode); in handle_writer()
494 int opcode; in main() local
589 opcode = buf[0] << 8 | buf[1]; in main()
590 switch (opcode) { in main()
599 printf("[TQFTP] unhandled op %d\n", opcode); in main()