Lines Matching refs:block
51 uint16_t block; member
59 tftp_send(int peer, uint16_t *block, struct tftp_stats *ts) in tftp_send() argument
70 *block = 1; in tftp_send()
78 *block, windowblock); in tftp_send()
81 window[windowblock].block = *block; in tftp_send()
92 n_data = send_data(peer, *block, sendbuffer, size); in tftp_send()
99 "giving up", *block); in tftp_send()
104 *block); in tftp_send()
116 "giving up", acktry, *block); in tftp_send()
121 acktry, *block); in tftp_send()
132 *block = window[0].block; in tftp_send()
149 if (rp->th_block == window[i].block) in tftp_send()
172 *block = window[0].block; in tftp_send()
183 window[j].block); in tftp_send()
204 *block = window[i + 1].block; in tftp_send()
214 oldblock = *block; in tftp_send()
215 (*block)++; in tftp_send()
216 if (oldblock > *block) { in tftp_send()
223 *block = 0; in tftp_send()
225 *block = atoi(options[OPT_ROLLOVER].o_request); in tftp_send()
243 tftp_receive(int peer, uint16_t *block, struct tftp_stats *ts, in tftp_receive() argument
261 n_ack = send_ack(peer, *block); in tftp_receive()
266 "giving up", *block); in tftp_receive()
271 *block); in tftp_receive()
288 oldblock = *block; in tftp_receive()
289 (*block)++; in tftp_receive()
290 if (oldblock > *block) { in tftp_receive()
297 *block = 0; in tftp_receive()
299 *block = atoi(options[OPT_ROLLOVER].o_request); in tftp_receive()
309 *block, windowblock); in tftp_receive()
317 "giving up", retry, *block); in tftp_receive()
323 retry, *block); in tftp_receive()
338 if (rp->th_block == *block) in tftp_receive()
350 if (*block > windowsize) in tftp_receive()
351 windowstart = *block - windowsize; in tftp_receive()
355 rp->th_block < *block) { in tftp_receive()
367 *block, rp->th_block); in tftp_receive()
373 *block = oldblock; in tftp_receive()
406 n_ack = send_ack(peer, *block); in tftp_receive()
412 "giving up", *block); in tftp_receive()
418 *block); in tftp_receive()
423 tftp_log(LOG_DEBUG, "Sent ACK for %d", *block); in tftp_receive()
441 *block == rp->th_block) /* then my last ack was lost */ in tftp_receive()
442 send_ack(peer, *block); /* resend final ack */ in tftp_receive()