SEGSIZE
} while (size == SEGSIZE);
} while (size == SEGSIZE);
#define PKTSIZE SEGSIZE+4
if (res < SEGSIZE)
if (res < SEGSIZE)
needblock = tftpfile->off / SEGSIZE + 1;
offinblock = tftpfile->off % SEGSIZE;
} while (size == SEGSIZE || block == 1);
} while (size == SEGSIZE);
#define PKTSIZE SEGSIZE+4
b->counter = read(fileno(file), dp->th_data, SEGSIZE);
for (i = 0 ; i < SEGSIZE; i++) {
#define PKTSIZE SEGSIZE+4 /* should be moved to tftp.h */