Linux tsuru-no-tsurugi 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64
Apache/2.4.52 (Ubuntu)
Server IP : 192.168.0.18 & Your IP : 216.73.216.68
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
linux-headers-5.15.0-186 /
samples /
bpf /
Delete
Unzip
Name
Size
Permission
Date
Action
Makefile
15.86
KB
-rw-r--r--
2026-06-21 00:49
Makefile.target
2.52
KB
-rw-r--r--
2026-06-21 00:49
do_hbm_test.sh
12
KB
-rwxr-xr-x
2021-11-01 05:53
lwt_len_hist.sh
1.02
KB
-rwxr-xr-x
2021-11-01 05:53
run_cookie_uid_helper_example.sh
341
B
-rwxr-xr-x
2021-11-01 05:53
tc_l2_redirect.sh
4.91
KB
-rwxr-xr-x
2021-11-01 05:53
test_cgrp2_sock.sh
2.89
KB
-rwxr-xr-x
2021-11-01 05:53
test_cgrp2_sock2.sh
1.76
KB
-rwxr-xr-x
2021-11-01 05:53
test_cgrp2_tc.sh
4.15
KB
-rwxr-xr-x
2021-11-01 05:53
test_cls_bpf.sh
915
B
-rwxr-xr-x
2021-11-01 05:53
test_lwt_bpf.sh
8.96
KB
-rwxr-xr-x
2021-11-01 05:53
test_override_return.sh
276
B
-rwxr-xr-x
2021-11-01 05:53
xdp2skb_meta.sh
4.5
KB
-rwxr-xr-x
2021-11-01 05:53
Save
Rename
#!/bin/bash # SPDX-License-Identifier: GPL-2.0 BPFFS=/sys/fs/bpf LINK_PIN=$BPFFS/test_cgrp2_sock2 function config_device { ip netns add at_ns0 ip link add veth0 type veth peer name veth0b ip link set veth0b up ip link set veth0 netns at_ns0 ip netns exec at_ns0 ip addr add 172.16.1.100/24 dev veth0 ip netns exec at_ns0 ip addr add 2401:db00::1/64 dev veth0 nodad ip netns exec at_ns0 ip link set dev veth0 up ip addr add 172.16.1.101/24 dev veth0b ip addr add 2401:db00::2/64 dev veth0b nodad } function config_cgroup { rm -rf /tmp/cgroupv2 mkdir -p /tmp/cgroupv2 mount -t cgroup2 none /tmp/cgroupv2 mkdir -p /tmp/cgroupv2/foo echo $$ >> /tmp/cgroupv2/foo/cgroup.procs } function config_bpffs { if mount | grep $BPFFS > /dev/null; then echo "bpffs already mounted" else echo "bpffs not mounted. Mounting..." mount -t bpf none $BPFFS fi } function attach_bpf { ./test_cgrp2_sock2 /tmp/cgroupv2/foo sock_flags_kern.o $1 [ $? -ne 0 ] && exit 1 } function cleanup { rm -rf $LINK_PIN ip link del veth0b ip netns delete at_ns0 umount /tmp/cgroupv2 rm -rf /tmp/cgroupv2 } cleanup 2>/dev/null set -e config_device config_cgroup config_bpffs set +e # # Test 1 - fail ping6 # attach_bpf 0 ping -c1 -w1 172.16.1.100 if [ $? -ne 0 ]; then echo "ping failed when it should succeed" cleanup exit 1 fi ping6 -c1 -w1 2401:db00::1 if [ $? -eq 0 ]; then echo "ping6 succeeded when it should not" cleanup exit 1 fi rm -rf $LINK_PIN sleep 1 # Wait for link detach # # Test 2 - fail ping # attach_bpf 1 ping6 -c1 -w1 2401:db00::1 if [ $? -ne 0 ]; then echo "ping6 failed when it should succeed" cleanup exit 1 fi ping -c1 -w1 172.16.1.100 if [ $? -eq 0 ]; then echo "ping succeeded when it should not" cleanup exit 1 fi cleanup echo echo "*** PASS ***"