Lines Matching refs:batch
256 } *batch; variable
266 batch = calloc(batch_size, sizeof(*batch));
267 ATF_REQUIRE(batch != NULL);
279 batch[i].src.s_addr = s.s_addr | htonl(rand_range(0, 0xffff));
280 batch[i].dst.s_addr = d.s_addr | htonl(rand_range(0, 0xffff));
281 batch[i].sport = rand_range(1000, 60000);
282 batch[i].dport = rand_range(1000, 60000);
287 batch[i].src, batch[i].sport,
288 batch[i].dst, batch[i].dport,
290 batch[i].aport = htons(u->uh_sport);
293 qsort(batch, batch_size, sizeof(*batch), randcmp);
297 batch[i].dst, batch[i].dport,
298 masq, batch[i].aport,
299 batch[i].src, batch[i].sport);
303 free(batch);