Home
last modified time | relevance | path

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

/Linux-v6.1/tools/testing/selftests/net/
Dmsg_zerocopy.c80 static int cfg_family = PF_UNSPEC; variable
497 uint16_t proto = cfg_family == PF_INET ? ETH_P_IP : ETH_P_IPV6; in do_tx()
524 if (cfg_family == PF_INET) in do_tx()
633 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 …]
Dtoeplitz.c72 static int cfg_family = AF_INET6; variable
158 if (!inet_ntop(cfg_family, addrs, saddr, sizeof(saddr)) || in log_rxhash()
159 !inet_ntop(cfg_family, addrs + addr_len, daddr, sizeof(daddr))) in log_rxhash()
176 if (cfg_family == AF_INET) { in verify_rxhash()
312 if (cfg_family == AF_INET) in set_filter()
360 ll.sll_protocol = cfg_family == AF_INET ? htons(ETH_P_IP) : in create_ring()
386 fd = socket(cfg_family, cfg_type, 0); in setup_sink()
388 error(1, errno, "socket %d.%d", cfg_family, cfg_type); in setup_sink()
506 cfg_family = AF_INET; in parse_opts()
509 cfg_family = AF_INET6; in parse_opts()
Dudpgso_bench_tx.c59 static int cfg_family = PF_UNSPEC; variable
429 if (cfg_family != PF_UNSPEC) in parse_opts()
431 cfg_family = PF_INET; in parse_opts()
435 if (cfg_family != PF_UNSPEC) in parse_opts()
437 cfg_family = PF_INET6; in parse_opts()
497 bind_addr = cfg_family == PF_INET6 ? "::" : "0.0.0.0"; in parse_opts()
499 setup_sockaddr(cfg_family, bind_addr, &cfg_dst_addr); in parse_opts()
504 if (cfg_family == PF_UNSPEC) in parse_opts()
513 if (cfg_family == PF_INET) in parse_opts()
633 fd = socket(cfg_family, cfg_tcp ? SOCK_STREAM : SOCK_DGRAM, 0); in main()
[all …]
Dtcp_mmap.c75 static int cfg_family = AF_INET6; variable
385 cfg_family = PF_INET; in main()
389 cfg_family = PF_INET6; in main()
441 int fdlisten = socket(cfg_family, SOCK_STREAM, 0); in main()
450 setup_sockaddr(cfg_family, host, &listenaddr); in main()
475 fd = socket(cfg_family, SOCK_STREAM, 0); in main()
482 setup_sockaddr(cfg_family, host, &addr); in main()
Dudpgso_bench_rx.c43 static int cfg_family = PF_INET6; variable
130 fd = socket(cfg_family, cfg_tcp ? SOCK_STREAM : SOCK_DGRAM, 0); in do_socket()
302 cfg_family = PF_INET; in parse_opts()
343 bind_addr = cfg_family == PF_INET6 ? "::" : "0.0.0.0"; in parse_opts()
345 setup_sockaddr(cfg_family, bind_addr, &cfg_bind_addr); in parse_opts()
Dio_uring_zerocopy_tx.c53 static int cfg_family = PF_UNSPEC; variable
509 if (cfg_family != PF_UNSPEC) in parse_opts()
511 cfg_family = PF_INET; in parse_opts()
515 if (cfg_family != PF_UNSPEC) in parse_opts()
517 cfg_family = PF_INET6; in parse_opts()
544 switch (cfg_family) { in parse_opts()
578 do_test(cfg_family, SOCK_STREAM, 0); in main()
580 do_test(cfg_family, SOCK_DGRAM, 0); in main()