Lines Matching full:opcode
106 uint16_t opcode = sys_get_be16(client->tftp_buf); in send_data() local
109 LOG_DBG("Receive: opcode %u, block no %u, size %d", in send_data()
110 opcode, blockno, ret); in send_data()
112 if (opcode == ACK_OPCODE && blockno == block_no) { in send_data()
114 } else if (opcode == ACK_OPCODE && blockno < block_no) { in send_data()
118 } else if (opcode == ERROR_OPCODE) { in send_data()
131 LOG_ERR("Server responded with invalid opcode or block number."); in send_data()
151 /* Fill in the "Err" Opcode and the actual error code. */ in send_err()
251 .opcode = htons(ACK_OPCODE), in tftp_get()
273 uint16_t opcode = sys_get_be16(client->tftp_buf); in tftp_get() local
276 LOG_DBG("Received data: opcode %u, block no %u, size %d", in tftp_get()
277 opcode, block_no, rcv_size); in tftp_get()
279 if (opcode == ERROR_OPCODE) { in tftp_get()
291 } else if (opcode != DATA_OPCODE) { in tftp_get()
292 LOG_ERR("Server responded with invalid opcode."); in tftp_get()
397 uint16_t opcode = sys_get_be16(client->tftp_buf); in tftp_put() local
400 LOG_DBG("Receive: opcode %u, block no %u, size %d", opcode, block_no, ret); in tftp_put()
402 if (opcode == ERROR_OPCODE) { in tftp_put()
415 } else if (opcode != ACK_OPCODE || block_no != 0) { in tftp_put()
416 LOG_ERR("Server responded with invalid opcode or block number."); in tftp_put()