592
592
/* Is this the block we expect? */
593
593
rblock = getrpacketblock(&state->rpacket);
597
606
"Received unexpected DATA packet block %d, expecting block %d\n",
598
607
rblock, NEXT_BLOCKNUM(state->block));
602
612
state->block = (unsigned short)rblock;
604
613
setpacketevent(&state->spacket, TFTP_EVENT_ACK);
605
614
setpacketblock(&state->spacket, state->block);
606
615
sbytes = sendto(state->sockfd, (void *)state->spacket.data,