Searched refs:cfg_family (Results 1 – 7 of 7) sorted by relevance
/Linux-v6.6/tools/testing/selftests/net/ |
D | csum.c | 97 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 …]
|
D | msg_zerocopy.c | 80 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 …]
|
D | toeplitz.c | 72 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()
|
D | udpgso_bench_tx.c | 59 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 …]
|
D | udpgso_bench_rx.c | 43 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()
|
D | io_uring_zerocopy_tx.c | 53 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()
|
D | tcp_mmap.c | 80 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()
|