Lines Matching defs:block
1014 volatile ushort_t block = 1;
1075 "received ACK for block %d\n",
1098 dp->th_block = htons((ushort_t)block);
1102 (void) fprintf(stderr, "Sending DATA block %d\n",
1103 block);
1153 "received ACK for block %d\n",
1155 if (ackbuf.tb_hdr.th_block == block) {
1166 block++;
1189 ushort_t block = 0;
1199 ap->th_block = htons((ushort_t)block);
1207 block++;
1213 "Sending ACK for block %d\n", block - 1);
1272 "Received DATA block %d\n",
1274 if (dp->th_block == block) {
1282 if (dp->th_block == (block-1))
1306 ap->th_block = htons((ushort_t)(block));
1308 (void) fprintf(stderr, "Sending ACK for block %d\n", block);
1322 dp->th_opcode == DATA && /* and got a data block */
1323 block == dp->th_block) { /* then my last ack was lost */
1325 (void) fprintf(stderr, "Sending ACK for block %d\n",
1326 block);