Back to home page

OSCL-LXR

 
 

    


 
  Name Size Date (UTC) Last indexed Description
  Name Size Date (UTC) Last indexed Description
folder Parent directory - 2025-03-06 09:18:41  
folder af_unix/ - 2025-03-06 09:18:40  
folder bpf/ - 2025-03-06 09:18:40  
folder forwarding/ - 2025-03-06 09:18:40

Motivation
One of the nice things about network namespaces is that they allow one to easily create and test complex environments.
Unfortunately, these namespaces can not be used with actual switching ASICs, as their ports can not be migrated to other network namespaces (NETIF_F_NETNS_LOCAL) and most of them probably do not support the L1-separation provided by namespaces.


SEE ALSO: README

folder mptcp/ - 2025-03-06 09:18:40  
altnames.sh 1817 bytes 2025-03-06 09:18:40 2025-03-06 13:40:59  
amt.sh 9139 bytes 2025-03-06 09:18:40 2025-03-06 13:40:59  
arp_ndisc_evict_nocarrier.sh 5457 bytes 2025-03-06 09:18:40 2025-03-06 13:40:59  
arp_ndisc_untracked_subnets.sh 7551 bytes 2025-03-06 09:18:40 2025-03-06 13:41:00  
bareudp.sh 21288 bytes 2025-03-06 09:18:40 2025-03-06 13:41:00  
cmsg_ipv6.sh 3387 bytes 2025-03-06 09:18:40 2025-03-06 13:41:00  
cmsg_sender.c 12146 bytes 2025-03-06 09:18:40 2025-03-06 13:41:00  
cmsg_so_mark.sh 1572 bytes 2025-03-06 09:18:40 2025-03-06 13:41:00  
cmsg_time.sh 1947 bytes 2025-03-06 09:18:40 2025-03-06 13:41:00  
config 964 bytes 2025-03-06 09:18:40 -  
devlink_port_split.py 7517 bytes 2025-03-06 09:18:40 2025-03-06 13:41:00  
drop_monitor_tests.sh 4439 bytes 2025-03-06 09:18:40 2025-03-06 13:41:00  
fcnal-test.sh 105032 bytes 2025-03-06 09:18:40 2025-03-06 13:41:00  
fib-onlink-tests.sh 12409 bytes 2025-03-06 09:18:40 2025-03-06 13:41:00  
fib_nexthop_multiprefix.sh 5882 bytes 2025-03-06 09:18:40 2025-03-06 13:41:00  
fib_nexthop_nongw.sh 2327 bytes 2025-03-06 09:18:40 2025-03-06 13:41:00  
fib_nexthops.sh 69622 bytes 2025-03-06 09:18:40 2025-03-06 13:41:00  
fib_rule_tests.sh 7952 bytes 2025-03-06 09:18:40 2025-03-06 13:41:00  
fib_tests.sh 60175 bytes 2025-03-06 09:18:40 2025-03-06 13:41:01  
fin_ack_lat.c 3397 bytes 2025-03-06 09:18:40 2025-03-06 13:41:01  
fin_ack_lat.sh 507 bytes 2025-03-06 09:18:40 2025-03-06 13:41:01  
gre_gso.sh 4237 bytes 2025-03-06 09:18:40 2025-03-06 13:41:01  
gro.c 33344 bytes 2025-03-06 09:18:40 2025-03-06 13:41:01

This testsuite provides conformance testing for oalescing.

gro.sh 2101 bytes 2025-03-06 09:18:40 2025-03-06 13:41:01  
hwtstamp_config.c 3125 bytes 2025-03-06 09:18:40 2025-03-06 13:41:01  
icmp.sh 2618 bytes 2025-03-06 09:18:40 2025-03-06 13:41:01  
icmp_redirect.sh 12820 bytes 2025-03-06 09:18:40 2025-03-06 13:41:01  
in_netns.sh 323 bytes 2025-03-06 09:18:40 2025-03-06 13:41:01  
io_uring_zerocopy_tx.c 13774 bytes 2025-03-06 09:18:40 2025-03-06 13:41:01

based on linux-kernel/tools/testing/selftests/net/msg_zerocopy.c

io_uring_zerocopy_tx.sh 3088 bytes 2025-03-06 09:18:40 2025-03-06 13:41:01  
ioam6.sh 29289 bytes 2025-03-06 09:18:40 2025-03-06 13:41:01  
ioam6_parser.c 14782 bytes 2025-03-06 09:18:40 2025-03-06 13:41:01

Author: Justin Iurman (justin.iurman@uliege.be) IOAM tester for IPv6, see ioam6.sh for details on each test case.

ip6_gre_headroom.sh 1400 bytes 2025-03-06 09:18:40 2025-03-06 13:41:02  
ip_defrag.c 12900 bytes 2025-03-06 09:18:40 2025-03-06 13:41:02  
ip_defrag.sh 2087 bytes 2025-03-06 09:18:40 2025-03-06 13:41:02  
ipsec.c 57370 bytes 2025-03-06 09:18:40 2025-03-06 13:41:02 Check xfrm on veth inside a net-ns.
ipv6_flowlabel.c 6232 bytes 2025-03-06 09:18:40 2025-03-06 13:41:02

Test IPV6_FLOWINFO cmsg on send and recv

ipv6_flowlabel.sh 1027 bytes 2025-03-06 09:18:40 2025-03-06 13:41:02  
ipv6_flowlabel_mgr.c 5506 bytes 2025-03-06 09:18:40 2025-03-06 13:41:02

Test IPV6_FLOWINFO_MGR

l2tp.sh 9909 bytes 2025-03-06 09:18:40 2025-03-06 13:41:02  
Makefile 3060 bytes 2025-03-06 09:18:40 2025-03-06 13:41:02  
msg_zerocopy.c 19360 bytes 2025-03-06 09:18:40 2025-03-06 13:41:02  
msg_zerocopy.sh 3012 bytes 2025-03-06 09:18:40 2025-03-06 13:41:02  
ndisc_unsolicited_na_test.sh 6097 bytes 2025-03-06 09:18:40 2025-03-06 13:41:02  
netdevice.sh 4521 bytes 2025-03-06 09:18:40 2025-03-06 13:41:02  
nettest.c 44540 bytes 2025-03-06 09:18:40 2025-03-06 13:41:03  
pmtu.sh 71247 bytes 2025-03-06 09:18:40 2025-03-06 13:41:03  
psock_fanout.c 14389 bytes 2025-03-06 09:18:40 2025-03-06 13:41:03  
psock_lib.h 3540 bytes 2025-03-06 09:18:40 2025-03-06 13:41:03  
psock_snd.c 8740 bytes 2025-03-06 09:18:40 2025-03-06 13:41:03  
psock_snd.sh 2252 bytes 2025-03-06 09:18:40 2025-03-06 13:41:03  
psock_tpacket.c 18855 bytes 2025-03-06 09:18:40 2025-03-06 13:41:03  
reuseaddr_conflict.c 2688 bytes 2025-03-06 09:18:40 2025-03-06 13:41:03  
reuseaddr_ports_exhausted.c 4070 bytes 2025-03-06 09:18:40 2025-03-06 13:41:03

Check if we can fully utilize 4-tuples for connect().

reuseaddr_ports_exhausted.sh 635 bytes 2025-03-06 09:18:40 2025-03-06 13:41:03  
reuseport_addr_any.c 7243 bytes 2025-03-06 09:18:40 2025-03-06 13:41:03

Test that sockets listening on a specific address are preferred over sockets listening on addr_any.

reuseport_addr_any.sh 81 bytes 2025-03-06 09:18:40 2025-03-06 13:41:03  
reuseport_bpf.c 17583 bytes 2025-03-06 09:18:40 2025-03-06 13:41:04

Test functionality of BPF filters for SO_REUSEPORT.

reuseport_bpf_cpu.c 6714 bytes 2025-03-06 09:18:40 2025-03-06 13:41:04

Test functionality of BPF filters with SO_REUSEPORT.

reuseport_bpf_numa.c 6484 bytes 2025-03-06 09:18:40 2025-03-06 13:41:04

Test functionality of BPF filters with SO_REUSEPORT. Same test as in reuseport_bpf_cpu, only as one socket per NUMA node.

reuseport_dualstack.c 5745 bytes 2025-03-06 09:18:40 2025-03-06 13:41:04

It is possible to use SO_REUSEPORT to open multiple sockets bound to equivalent local addresses using AF_INET and AF_INET6 at the same time.

route_localnet.sh 1871 bytes 2025-03-06 09:18:40 2025-03-06 13:41:04  
rtnetlink.sh 29016 bytes 2025-03-06 09:18:40 2025-03-06 13:41:04  
run_afpackettests 866 bytes 2025-03-06 09:18:40 2025-03-06 13:41:04  
run_netsocktests 206 bytes 2025-03-06 09:18:40 2025-03-06 13:41:04  
rxtimestamp.c 9870 bytes 2025-03-06 09:18:40 2025-03-06 13:41:04  
rxtimestamp.sh 79 bytes 2025-03-06 09:18:40 2025-03-06 13:41:04  
settings 13 bytes 2025-03-06 09:18:40 -  
setup_loopback.sh 2654 bytes 2025-03-06 09:18:40 2025-03-06 13:41:04  
setup_veth.sh 928 bytes 2025-03-06 09:18:40 2025-03-06 13:41:04  
so_netns_cookie.c 1427 bytes 2025-03-06 09:18:40 2025-03-06 13:41:04  
so_txtime.c 12119 bytes 2025-03-06 09:18:40 2025-03-06 13:41:04

Test the SO_TXTIME API Takes a stream of { payload, delivery time }[], to be sent across two processes.

so_txtime.sh 2434 bytes 2025-03-06 09:18:40 2025-03-06 13:41:04  
socket.c 1920 bytes 2025-03-06 09:18:40 2025-03-06 13:41:04  
srv6_end_dt46_l3vpn_test.sh 21123 bytes 2025-03-06 09:18:40 2025-03-06 13:41:04  
srv6_end_dt4_l3vpn_test.sh 17309 bytes 2025-03-06 09:18:40 2025-03-06 13:41:04  
srv6_end_dt6_l3vpn_test.sh 17615 bytes 2025-03-06 09:18:40 2025-03-06 13:41:04  
srv6_hencap_red_l3vpn_test.sh 23706 bytes 2025-03-06 09:18:40 2025-03-06 13:41:04  
srv6_hl2encap_red_l2vpn_test.sh 21000 bytes 2025-03-06 09:18:40 2025-03-06 13:41:04  
stress_reuseport_listen.c 2621 bytes 2025-03-06 09:18:40 2025-03-06 13:41:04

Test listening on the same port 443 with multiple VIPS. Each VIP:443 will have multiple sk listening on by using SO_REUSEPORT.

stress_reuseport_listen.sh 564 bytes 2025-03-06 09:18:40 2025-03-06 13:41:04  
tap.c 10042 bytes 2025-03-06 09:18:40 2025-03-06 13:41:04  
tcp_fastopen_backup_key.c 8523 bytes 2025-03-06 09:18:40 2025-03-06 13:41:05

Test key rotation for TFO.

tcp_fastopen_backup_key.sh 1086 bytes 2025-03-06 09:18:40 2025-03-06 13:41:05  
tcp_inq.c 4204 bytes 2025-03-06 09:18:40 2025-03-06 13:41:05  
tcp_mmap.c 13556 bytes 2025-03-06 09:18:40 2025-03-06 13:41:05  
test_blackhole_dev.sh 280 bytes 2025-03-06 09:18:40 2025-03-06 13:41:05  
test_bpf.sh 225 bytes 2025-03-06 09:18:40 2025-03-06 13:41:05  
test_vxlan_fdb_changelink.sh 678 bytes 2025-03-06 09:18:40 2025-03-06 13:41:05  
test_vxlan_under_vrf.sh 5607 bytes 2025-03-06 09:18:40 2025-03-06 13:41:05  
test_vxlan_vnifiltering.sh 20944 bytes 2025-03-06 09:18:40 2025-03-06 13:41:05  
timestamping.c 16004 bytes 2025-03-06 09:18:40 2025-03-06 13:41:05  
tls.c 43662 bytes 2025-03-06 09:18:40 2025-03-06 13:41:06  
toeplitz.c 14649 bytes 2025-03-06 09:18:40 2025-03-06 13:41:06

Toeplitz test 1.

toeplitz.sh 4981 bytes 2025-03-06 09:18:40 2025-03-06 13:41:06  
toeplitz_client.sh 667 bytes 2025-03-06 09:18:40 2025-03-06 13:41:06  
traceroute.sh 7313 bytes 2025-03-06 09:18:40 2025-03-06 13:41:06  
tun.c 3440 bytes 2025-03-06 09:18:40 2025-03-06 13:41:06  
txring_overwrite.c 3807 bytes 2025-03-06 09:18:40 2025-03-06 13:41:06

Verify that consecutive sends over packet tx_ring are mirrored with their original content intact.

txtimestamp.c 22048 bytes 2025-03-06 09:18:40 2025-03-06 13:41:06  
txtimestamp.sh 1702 bytes 2025-03-06 09:18:40 2025-03-06 13:41:06  
udpgro.sh 5737 bytes 2025-03-06 09:18:40 2025-03-06 13:41:06  
udpgro_bench.sh 2115 bytes 2025-03-06 09:18:40 2025-03-06 13:41:06  
udpgro_frglist.sh 2504 bytes 2025-03-06 09:18:40 2025-03-06 13:41:06  
udpgro_fwd.sh 6461 bytes 2025-03-06 09:18:40 2025-03-06 13:41:06  
udpgso.c 15219 bytes 2025-03-06 09:18:40 2025-03-06 13:41:06  
udpgso.sh 545 bytes 2025-03-06 09:18:40 2025-03-06 13:41:06  
udpgso_bench.sh 2412 bytes 2025-03-06 09:18:40 2025-03-06 13:41:06  
udpgso_bench_rx.c 8843 bytes 2025-03-06 09:18:40 2025-03-06 13:41:06  
udpgso_bench_tx.c 16145 bytes 2025-03-06 09:18:40 2025-03-06 13:41:06  
unicast_extensions.sh 8263 bytes 2025-03-06 09:18:40 2025-03-06 13:41:06  
veth.sh 9591 bytes 2025-03-06 09:18:40 2025-03-06 13:41:06  
vrf-xfrm-tests.sh 11002 bytes 2025-03-06 09:18:40 2025-03-06 13:41:06  
vrf_route_leaking.sh 14794 bytes 2025-03-06 09:18:40 2025-03-06 13:41:06  
vrf_strict_mode_test.sh 8266 bytes 2025-03-06 09:18:40 2025-03-06 13:41:07  
xfrm_policy.sh 14759 bytes 2025-03-06 09:18:40 2025-03-06 13:41:07