• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/curl-7.23.1/source/lib/

Lines Matching refs:block

75 /* RFC2348 allows the block size to be negotiated */
142 unsigned short block;
228 /* Set per-block timeout to total */
252 /* Set per-block timeout to total */
592 /* Is this the block we expect? */
594 if(NEXT_BLOCKNUM(state->block) != rblock) {
597 "Received unexpected DATA packet block %d, expecting block %d\n",
598 rblock, NEXT_BLOCKNUM(state->block));
601 /* This is the expected block. Reset counters and ACK it. */
602 state->block = (unsigned short)rblock;
605 setpacketblock(&state->spacket, state->block);
627 state->block = 0;
630 setpacketblock(&state->spacket, state->block);
649 "Timeout waiting for block %d ACK. Retries = %d\n",
650 NEXT_BLOCKNUM(state->block), state->retries);
670 setpacketblock(&state->spacket, state->block);
711 if(rblock != state->block &&
713 * 65535 when the block number wraps to 0. So when we're expecting
717 !(state->block == 0 && rblock == 65535)) {
718 /* This isn't the expected block. Log it and up the retry counter */
719 infof(data, "Received ACK for block %d, expecting %d\n",
720 rblock, state->block);
724 failf(data, "tftp_tx: giving up waiting for block %d ack",
725 state->block);
743 block */
745 state->block++;
748 state->block = 1; /* first data block is 1 when using OACK */
752 setpacketblock(&state->spacket, state->block);
753 if(state->block > 1 && state->sbytes < (int)state->blksize) {
777 infof(data, "Timeout waiting for block %d ACK. "
778 " Retries = %d\n", NEXT_BLOCKNUM(state->block), state->retries);
803 setpacketblock(&state->spacket, state->block);
1108 (NEXT_BLOCKNUM(state->block) == getrpacketblock(&state->rpacket))) {