Lines Matching refs:block
64 size_t block; member
76 unsigned int block, size_t offset) in tftp_send_data() argument
88 *p++ = (block >> 8) & 0xff; in tftp_send_data()
89 *p++ = block & 0xff; in tftp_send_data()
110 static int tftp_send_ack(int sock, int block) in tftp_send_ack() argument
114 uint16_t block; in tftp_send_ack() member
115 } ack = { htons(OP_ACK), htons(block) }; in tftp_send_ack()
375 uint16_t block; in handle_reader() local
413 for (block = last; block < last + client->wsize; block++) { in handle_reader()
414 n = tftp_send_data(client, block + 1, in handle_reader()
415 block * client->blksize); in handle_reader()
417 printf("[TQFTP] Sent block %d failed: %zd\n", block + 1, n); in handle_reader()
431 uint16_t block; in handle_writer() local
454 block = buf[2] << 8 | buf[3]; in handle_writer()
470 tftp_send_ack(client->sock, block); in handle_writer()