Home
last modified time | relevance | path

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

/linux-6.12.1/tools/testing/selftests/net/
Dio_uring_zerocopy_tx.c55 static int cfg_family = PF_UNSPEC; variable
245 if (cfg_family != PF_UNSPEC) in parse_opts()
247 cfg_family = PF_INET; in parse_opts()
251 if (cfg_family != PF_UNSPEC) in parse_opts()
253 cfg_family = PF_INET6; in parse_opts()
280 switch (cfg_family) { in parse_opts()
314 do_test(cfg_family, SOCK_STREAM, 0); in main()
316 do_test(cfg_family, SOCK_DGRAM, 0); in main()
Dmsg_zerocopy.c80 static int cfg_family = PF_UNSPEC; variable
501 uint16_t proto = cfg_family == PF_INET ? ETH_P_IP : ETH_P_IPV6; in do_tx()
528 if (cfg_family == PF_INET) in do_tx()
640 if (cfg_family == PF_INET && type == SOCK_RAW) { in do_flush_datagram()
721 if (cfg_family != PF_UNSPEC) in parse_opts()
723 cfg_family = PF_INET; in parse_opts()
727 if (cfg_family != PF_UNSPEC) in parse_opts()
729 cfg_family = PF_INET6; in parse_opts()
783 setup_sockaddr(cfg_family, daddr, &cfg_dst_addr); in parse_opts()
784 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()
314 if (cfg_family == AF_INET) in set_filter()
362 ll.sll_protocol = cfg_family == AF_INET ? htons(ETH_P_IP) : in create_ring()
388 fd = socket(cfg_family, cfg_type, 0); in setup_sink()
390 error(1, errno, "socket %d.%d", cfg_family, cfg_type); in setup_sink()
508 cfg_family = AF_INET; in parse_opts()
511 cfg_family = AF_INET6; in parse_opts()
Dudpgso_bench_tx.c59 static int cfg_family = PF_UNSPEC; variable
446 if (cfg_family != PF_UNSPEC) in parse_opts()
448 cfg_family = PF_INET; in parse_opts()
452 if (cfg_family != PF_UNSPEC) in parse_opts()
454 cfg_family = PF_INET6; in parse_opts()
519 bind_addr = cfg_family == PF_INET6 ? "::" : "0.0.0.0"; in parse_opts()
521 setup_sockaddr(cfg_family, bind_addr, &cfg_dst_addr); in parse_opts()
526 if (cfg_family == PF_UNSPEC) in parse_opts()
535 if (cfg_family == PF_INET) in parse_opts()
655 fd = socket(cfg_family, cfg_tcp ? SOCK_STREAM : SOCK_DGRAM, 0); in main()
[all …]
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()
300 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()
Dtcp_mmap.c80 static int cfg_family = AF_INET6; variable
460 cfg_family = PF_INET; in main()
464 cfg_family = PF_INET6; in main()
519 int fdlisten = socket(cfg_family, SOCK_STREAM, 0); in main()
528 setup_sockaddr(cfg_family, host, &listenaddr); in main()
553 fd = socket(cfg_family, SOCK_STREAM, 0); in main()
560 setup_sockaddr(cfg_family, host, &addr); in main()
/linux-6.12.1/tools/testing/selftests/net/lib/
Dcsum.c97 static int cfg_family = PF_INET6; variable
174 alen = cfg_family == PF_INET6 ? 32 : 8; in checksum()
323 if (cfg_family == PF_INET) in build_packet()
349 fd = socket(cfg_family, ipproto, protocol); in open_inet()
353 if (cfg_family == PF_INET6) { in open_inet()
422 if (cfg_family == PF_INET6) { in send_packet()
471 fd = socket(cfg_family, SOCK_DGRAM, 0); in recv_prepare_udp()
479 if (cfg_family == PF_INET6) { in recv_prepare_udp()
519 if (cfg_family == AF_INET) in recv_prepare_packet_filter()
533 if (cfg_family == PF_INET) in recv_prepare_packet_bind()
[all …]