th_block
ap->th_block = ntohs((u_short)ap->th_block);
if (etftp && ap->th_block == 0) {
if (ap->th_block == (u_short)block)
(unsigned int)ap->th_block, block);
if (ap->th_block == (u_short)(block - 1))
ap->th_block = htons((u_short)block);
dp->th_block = ntohs((u_short)dp->th_block);
(unsigned int)dp->th_block);
if (dp->th_block == block)
(unsigned int)dp->th_block, block);
if (dp->th_block == (block-1))
ap->th_block = htons((u_short)(block));
block == dp->th_block) { /* then my last ack was lost */
dp->th_block = htons((u_short)block);
tftp->th_block = htons(trh->trh_block);
if (ntohs(tftp->th_block) != trh->trh_block) {
__func__, __LINE__, trh->trh_block, ntohs(tftp->th_block)));
if (ntohs(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((u_short)block);
ap->th_block = ntohs(ap->th_block);
if (ap->th_block == 0) {
if (ap->th_block == block) {
if (ap->th_block == (block-1)) {
ap->th_block = htons((u_short)(block));
dp->th_block = ntohs(dp->th_block);
if (dp->th_block == 1 && !oack) {
if (dp->th_block == block) {
if (dp->th_block == (block-1)) {
ap->th_block = 0;
ap->th_block = htons((u_short)block);
(void)printf("<block=%d, %d bytes>\n", ntohs(tp->th_block),
(void)printf("<block=%d>\n", ntohs(tp->th_block));