Lines Matching refs:block
141 unsigned short block; member
589 if(NEXT_BLOCKNUM(state->block) == rblock) { in tftp_rx()
593 else if(state->block == rblock) { in tftp_rx()
602 rblock, NEXT_BLOCKNUM(state->block)); in tftp_rx()
607 state->block = (unsigned short)rblock; in tftp_rx()
609 setpacketblock(&state->spacket, state->block); in tftp_rx()
631 state->block = 0; in tftp_rx()
634 setpacketblock(&state->spacket, state->block); in tftp_rx()
654 NEXT_BLOCKNUM(state->block), state->retries); in tftp_rx()
674 setpacketblock(&state->spacket, state->block); in tftp_rx()
718 if(rblock != state->block && in tftp_tx()
724 !(state->block == 0 && rblock == 65535)) { in tftp_tx()
727 rblock, state->block); in tftp_tx()
732 state->block); in tftp_tx()
754 state->block++; in tftp_tx()
757 state->block = 1; /* first data block is 1 when using OACK */ in tftp_tx()
761 setpacketblock(&state->spacket, state->block); in tftp_tx()
762 if(state->block > 1 && state->sbytes < state->blksize) { in tftp_tx()
800 " Retries = %d", NEXT_BLOCKNUM(state->block), state->retries); in tftp_tx()
825 setpacketblock(&state->spacket, state->block); in tftp_tx()
1130 (NEXT_BLOCKNUM(state->block) == getrpacketblock(&state->rpacket))) { in tftp_receive_packet()