Lines Matching refs:blksize
89 socklen_t socklen, char *file, int opcode, int tsize, int blksize) in do_action() argument
96 spkt = xzalloc(blksize + 4); in do_action()
97 rpkt = xzalloc(blksize + 4); in do_action()
115 if (blksize != TFTPD_BLKSIZE || tsize) { in do_action()
118 if (blksize != TFTPD_BLKSIZE) { in do_action()
121 ptr += snprintf(ptr, 6, "%d", blksize) + 1; in do_action()
148 len = readall(fd, ptr, blksize); in do_action()
153 if (len != blksize) done = 1; //last pkt. in do_action()
178 len = read(pollfds[0].fd, rpkt, blksize + 4); in do_action()
222 if (nw != blksize) done = 1; in do_action()
239 int fd = 0, recvmsg_len, rbuflen, opcode, blksize = TFTPD_BLKSIZE, tsize = 0, set =1; in tftpd_main() local
250 recvmsg_len = recvfrom(fd, toybuf, blksize, 0, (void *)&dstaddr, &socklen); in tftpd_main()
295 blksize = strtoul(buf, NULL, 10); in tftpd_main()
296 if (errno || blksize > 65564 || blksize < 8) blksize = TFTPD_BLKSIZE; in tftpd_main()
307 socklen, toybuf + 2, opcode, tsize, blksize); in tftpd_main()