Lines Matching refs:cfg_payload_len
107 static int cfg_payload_len = 100; variable
231 uh->len = htons(sizeof(*uh) + cfg_payload_len); in build_packet_udp()
237 uh->source = checksum(uh, IPPROTO_UDP, sizeof(*uh) + cfg_payload_len); in build_packet_udp()
247 uh->check = checksum(uh, IPPROTO_UDP, sizeof(*uh) + cfg_payload_len); in build_packet_udp()
265 th->check = checksum(th, IPPROTO_TCP, sizeof(*th) + cfg_payload_len); in build_packet_tcp()
288 cfg_payload_len); in build_packet_udp_encap()
312 tlen = sizeof(struct udphdr) + cfg_payload_len; in build_packet()
314 tlen = sizeof(struct tcphdr) + cfg_payload_len; in build_packet()
337 *len = cfg_payload_len; in build_packet()
341 *len = off - buf + cfg_payload_len; in build_packet()
798 cfg_payload_len = strtol(optarg, NULL, 0); in parse_args()
855 if (cfg_payload_len > MAX_PAYLOAD_LEN) in parse_args()
918 cfg_payload_len = rand() % MAX_PAYLOAD_LEN; in do_tx()