Lines Matching defs:blocksize
8 * Optional blocksize negotiation (RFC2347 + RFC2348)
60 static int tftp_blocksize_check(int blocksize, int bufsize)
62 /* Check if the blocksize is valid:
68 if ((bufsize && (blocksize > bufsize))
69 || (blocksize < 8) || (blocksize > 65564)
71 bb_error_msg("bad blocksize");
75 return blocksize;
171 /* add "blksize", <nul>, blocksize */
402 int blocksize = TFTP_BLOCKSIZE_DEFAULT;
421 blocksize = xatoi_u(sblocksize);
422 if (!tftp_blocksize_check(blocksize, 0)) {
450 result = tftp( USE_GETPUT(cmd,) peer_lsa, remotefile, fd, port, blocksize);