Lines Matching refs:blksize
104 socklen_t socklen, char *file, int opcode, int tsize, int blksize) in do_action() argument
111 spkt = xzalloc(blksize + 4); in do_action()
112 rpkt = xzalloc(blksize + 4); in do_action()
130 if (blksize != TFTPD_BLKSIZE || tsize) { in do_action()
133 if (blksize != TFTPD_BLKSIZE) { in do_action()
136 ptr += snprintf(ptr, 6, "%d", blksize) + 1; in do_action()
163 len = readall(fd, ptr, blksize); in do_action()
168 if (len != blksize) done = 1; //last pkt. in do_action()
193 len = read(pollfds[0].fd, rpkt, blksize + 4); in do_action()
237 if (nw != blksize) done = 1; in do_action()
254 int fd = 0, recvmsg_len, opcode, blksize = TFTPD_BLKSIZE, tsize = 0, set =1, bflag = 0; in tftpd_main() local
266 recvmsg_len = recvfrom(fd, toybuf, blksize, 0, (void *)&dstaddr, &socklen); in tftpd_main()
310 blksize = strtoul(buf, NULL, 10); in tftpd_main()
311 if (errno || blksize > 65564 || blksize < 8) blksize = TFTPD_BLKSIZE; in tftpd_main()
320 socklen, toybuf + 2, opcode, tsize, blksize); in tftpd_main()