th_block
if (htons(t->th_block) != d->xid) {
wbuf.t.th_block = htons((u_short) h->currblock);
wbuf.t.th_block = htons((u_short) h->currblock);
dp->th_block = htons(block);
ap->th_block = ntohs(ap->th_block);
if (ap->th_block == block)
if (ap->th_block == (block - 1))
ap->th_block = htons(block);
dp->th_block = ntohs(dp->th_block);
if (dp->th_block == block)
if (dp->th_block == (block - 1))
ap->th_block = htons(block);
printf("<block=%d, %d bytes>\n", ntohs(tp->th_block), n - 4);
printf("<block=%d>\n", ntohs(tp->th_block));
p = (u_char *)&tp->th_block;
TCHECK(tp->th_block);
printf(" block %d", ntohs(tp->th_block));
dp->th_block = htons(client->block);
ap->th_block = ntohs((u_short)ap->th_block);
if (ap->th_block != client->block) {
if (ap->th_block != (client->block - 1))
ap->th_block = htons(client->block);
dp->th_block = ntohs((u_short)dp->th_block);
if (dp->th_block != client->block) {
if (dp->th_block != (client->block - 1))
dp->th_block = ntohs((u_short)dp->th_block);
if (dp->th_block != client->block)
ap->th_block = ntohs((u_short)ap->th_block);
if (ap->th_opcode != ACK || ap->th_block != 0)