Home
last modified time | relevance | path

Searched refs:test_pkts (Results 1 – 1 of 1) sorted by relevance

/freebsd/tools/regression/sockets/udp_pingpong/
H A Dudp_pingpong.c86 struct test_pkt test_pkts[NPKTS]; member
321 slen = sizeof(tcp->test_pkts[pnum]); in send_pkt()
322 clock_gettime(get_clock_type(tcp), &tcp->test_pkts[pnum].tss[fdidx].sent); in send_pkt()
323 r = send(tcp->fds[fdidx], &tcp->test_pkts[pnum], slen, 0); in send_pkt()
334 #define PDATA(tcp, i) ((tcp)->test_pkts[(i)].data)
464 memcpy(tcp->test_pkts[recv_buf.pnum].tss, recv_buf.tss, in recv_pkt()
466 tcp->test_pkts[recv_buf.pnum].lost = 0; in recv_pkt()
536 test_ctx.test_pkts[i].pnum = i; in test_run()
537 test_ctx.test_pkts[i].lost = 1; in test_run()
539 test_ctx.test_pkts[i].data[j] = (unsigned char)random(); in test_run()
[all …]