Home
last modified time | relevance | path

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

/Linux-v5.4/tools/testing/selftests/net/
Dmsg_zerocopy.c80 static int cfg_family = PF_UNSPEC; variable
498 uint16_t proto = cfg_family == PF_INET ? ETH_P_IP : ETH_P_IPV6; in do_tx()
525 if (cfg_family == PF_INET) in do_tx()
634 if (cfg_family == PF_INET && type == SOCK_RAW) { in do_flush_datagram()
715 if (cfg_family != PF_UNSPEC) in parse_opts()
717 cfg_family = PF_INET; in parse_opts()
721 if (cfg_family != PF_UNSPEC) in parse_opts()
723 cfg_family = PF_INET6; in parse_opts()
774 setup_sockaddr(cfg_family, daddr, &cfg_dst_addr); in parse_opts()
775 setup_sockaddr(cfg_family, saddr, &cfg_src_addr); in parse_opts()
[all …]
Dtcp_mmap.c75 static int cfg_family = AF_INET6; variable
315 cfg_family = PF_INET; in main()
319 cfg_family = PF_INET6; in main()
357 int fdlisten = socket(cfg_family, SOCK_STREAM, 0); in main()
366 setup_sockaddr(cfg_family, host, &listenaddr); in main()
391 fd = socket(cfg_family, SOCK_STREAM, 0); in main()
398 setup_sockaddr(cfg_family, host, &addr); in main()
Dudpgso_bench_tx.c59 static int cfg_family = PF_UNSPEC; variable
427 if (cfg_family != PF_UNSPEC) in parse_opts()
429 cfg_family = PF_INET; in parse_opts()
433 if (cfg_family != PF_UNSPEC) in parse_opts()
435 cfg_family = PF_INET6; in parse_opts()
448 setup_sockaddr(cfg_family, optarg, &cfg_dst_addr); in parse_opts()
497 if (cfg_family == PF_UNSPEC) in parse_opts()
506 if (cfg_family == PF_INET) in parse_opts()
626 fd = socket(cfg_family, cfg_tcp ? SOCK_STREAM : SOCK_DGRAM, 0); in main()
649 set_pmtu_discover(fd, cfg_family == PF_INET); in main()
Dudpgso_bench_rx.c43 static int cfg_family = PF_INET6; variable
127 fd = socket(cfg_family, cfg_tcp ? SOCK_STREAM : SOCK_DGRAM, 0); in do_socket()
300 cfg_family = PF_INET; in parse_opts()
305 setup_sockaddr(cfg_family, optarg, &cfg_bind_addr); in parse_opts()