Lines Matching refs:size
170 /* maximum size of an UDP packet according to the system */
178 int size = atoi(options[OPT_BLKSIZE].o_request);
179 if (size < BLKSIZE_MIN || size > BLKSIZE_MAX) {
183 size);
189 size);
194 if (size > (int)maxdgram) {
199 "%ld bytes.\n", size, maxdgram);
206 "%ld bytes.\n", size, maxdgram);
207 size = maxdgram;
212 asprintf(&options[OPT_BLKSIZE].o_reply, "%d", size);
213 segsize = size;
214 pktsize = size + 4;
226 int size, i;
237 /* maximum size of an UDP packet according to the system */
245 size = atoi(options[OPT_BLKSIZE2].o_request);
247 if (size == sizes[i]) break;
251 "Invalid blocksize2 (%d bytes), ignoring request", size);
255 if (size > (int)maxdgram) {
261 "sysctl limits it to %ld bytes.\n", size, maxdgram);
262 size = sizes[i];
266 asprintf(&options[OPT_BLKSIZE2].o_reply, "%d", size);
267 segsize = size;
268 pktsize = size + 4;
280 make_options(int peer __unused, char *buffer, uint16_t size) {
302 if (size <= length) {
307 option, value, size, length);
312 size -= length;
324 parse_options(int peer, char *buffer, uint16_t size)
334 while (size > 0) {
336 i = get_field(peer, cp, size);
340 i = get_field(peer, cp, size);
374 size -= strlen(option) + strlen(value) + 2;