Home
last modified time | relevance | path

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

/tools/testing/selftests/net/
A Dpsock_snd.c364 int fdr, fds, total_len; in run_test() local
369 total_len = do_tx(); in run_test()
373 do_rx(fds, total_len - sizeof(struct virtio_net_hdr), in run_test()
376 do_rx(fdr, cfg_payload_len, tbuf + total_len - cfg_payload_len); in run_test()
A Dtxtimestamp.c497 int fd, i, val = 1, total_len, epfd = 0; in do_test() local
503 total_len = cfg_payload_len; in do_test()
505 total_len += sizeof(struct udphdr); in do_test()
508 total_len += sizeof(struct iphdr); in do_test()
510 total_len += sizeof(struct ipv6hdr); in do_test()
519 buf = malloc(total_len); in do_test()
587 memset(buf, 'a' + i, total_len); in do_test()
605 iov.iov_len = total_len; in do_test()
659 if (val != total_len) in do_test()
A Dudpgso_bench_tx.c292 int ret, total_len, len, count = 0; in send_udp() local
294 total_len = cfg_payload_len; in send_udp()
296 while (total_len) { in send_udp()
297 len = total_len < cfg_mss ? total_len : cfg_mss; in send_udp()
307 total_len -= len; in send_udp()
A Dtls.c653 int total_len = 0; in TEST_F() local
665 total_len += vec[i].iov_len; in TEST_F()
671 buf = malloc(total_len); in TEST_F()
690 int total_len = 0; in TEST_F() local
702 total_len += vec[i].iov_len; in TEST_F()
974 memset(recv_mem, 0, total_len); in TEST_F()
983 unsigned int total_len = 2 * 10; in TEST_F() local
992 memset(recv_mem, 0, total_len); in TEST_F()
993 EXPECT_EQ(recv(self->cfd, recv_mem, total_len, MSG_WAITALL), total_len); in TEST_F()
1004 char send_mem[total_len]; in TEST_F()
[all …]
/tools/testing/selftests/net/mptcp/
A Dmptcp_connect.c101 unsigned int total_len; member
395 if (!winfo->total_len) in sock_connect_mptcp()
396 winfo->total_len = winfo->len = read(infd, winfo->buf, in sock_connect_mptcp()
796 ssize_t ret = 0, off = winfo->total_len; in do_mmap()
808 rem = size - winfo->total_len; in do_mmap()
860 count -= winfo->total_len; in do_sendfile()
A Dpm_nl_ctl.c1050 static void print_addrs(struct nlmsghdr *nh, int pm_family, int total_len) in print_addrs() argument
1054 for (; NLMSG_OK(nh, total_len); nh = NLMSG_NEXT(nh, total_len)) { in print_addrs()
1185 static void print_limits(struct nlmsghdr *nh, int pm_family, int total_len) in print_limits() argument
1190 for (; NLMSG_OK(nh, total_len); nh = NLMSG_NEXT(nh, total_len)) { in print_limits()
/tools/testing/selftests/net/lib/
A Dxdp_native.bpf.c225 __u16 total_len; in update_pkt() local

Completed in 23 milliseconds