Searched refs:cfg_family (Results 1 – 3 of 3) sorted by relevance
/external/linux-kselftest/tools/testing/selftests/net/ |
D | udpgso_bench_tx.c | 46 static int cfg_family = PF_UNSPEC; variable 256 if (cfg_family != PF_UNSPEC) in parse_opts() 258 cfg_family = PF_INET; in parse_opts() 262 if (cfg_family != PF_UNSPEC) in parse_opts() 264 cfg_family = PF_INET6; in parse_opts() 274 setup_sockaddr(cfg_family, optarg, &cfg_dst_addr); in parse_opts() 306 if (cfg_family == PF_UNSPEC) in parse_opts() 313 if (cfg_family == PF_INET) in parse_opts() 362 fd = socket(cfg_family, cfg_tcp ? SOCK_STREAM : SOCK_DGRAM, 0); in main() 377 set_pmtu_discover(fd, cfg_family == PF_INET); in main()
|
D | msg_zerocopy.c | 80 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() 714 if (cfg_family != PF_UNSPEC) in parse_opts() 716 cfg_family = PF_INET; in parse_opts() 720 if (cfg_family != PF_UNSPEC) in parse_opts() 722 cfg_family = PF_INET6; in parse_opts() 773 setup_sockaddr(cfg_family, daddr, &cfg_dst_addr); in parse_opts() 774 setup_sockaddr(cfg_family, saddr, &cfg_src_addr); in parse_opts() [all …]
|
D | tcp_mmap.c | 89 static int cfg_family = AF_INET6; variable 329 cfg_family = PF_INET; in main() 333 cfg_family = PF_INET6; in main() 371 int fdlisten = socket(cfg_family, SOCK_STREAM, 0); in main() 380 setup_sockaddr(cfg_family, host, &listenaddr); in main() 405 fd = socket(cfg_family, SOCK_STREAM, 0); in main() 412 setup_sockaddr(cfg_family, host, &addr); in main()
|