Lines Matching refs:max_frag_len
37 static int max_frag_len; variable
75 payload_len, max_frag_len); in recv_validate_udp()
159 if (payload_len - payload_offset <= max_frag_len && offset > 0) { in send_fragment()
164 frag_len = FRAG_HLEN + max_frag_len; in send_fragment()
177 if (payload_len - payload_offset <= max_frag_len && offset > 0) { in send_fragment()
182 frag_len = IP4_HLEN + max_frag_len; in send_fragment()
249 offset += max_frag_len; in send_udp_frags()
256 (payload_len > 9 * max_frag_len)) { in send_udp_frags()
257 offset = 6 * max_frag_len; in send_udp_frags()
260 offset += max_frag_len; in send_udp_frags()
262 offset = 3 * max_frag_len; in send_udp_frags()
263 while (offset < 6 * max_frag_len) { in send_udp_frags()
265 offset += max_frag_len; in send_udp_frags()
268 while (offset < 3 * max_frag_len) { in send_udp_frags()
270 offset += max_frag_len; in send_udp_frags()
276 offset = max_frag_len; in send_udp_frags()
282 offset += 2 * max_frag_len; in send_udp_frags()
294 if (max_frag_len * 4 < payload_len || max_frag_len < 16) { in send_udp_frags()
297 frag_len = UDP_HLEN + max_frag_len; in send_udp_frags()
300 frag_len = 2 * max_frag_len + 1 + rand() % 256; in send_udp_frags()
330 offset += 2 * max_frag_len; in send_udp_frags()
374 max_frag_len = min_frag_len + in run_test()
385 max_frag_len = min_frag_len; in run_test()
389 max_frag_len += 8 * (rand() % 8); in run_test()
390 } while (max_frag_len < (1500 - FRAG_HLEN) && in run_test()
391 max_frag_len <= payload_len); in run_test()