File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
tools/testing/selftests/net Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ TEST_PROGS += amt.sh
27
27
TEST_PROGS += unicast_extensions.sh
28
28
TEST_PROGS += udpgro_fwd.sh
29
29
TEST_PROGS += udpgro_frglist.sh
30
+ TEST_PROGS += nat6to4.sh
30
31
TEST_PROGS += veth.sh
31
32
TEST_PROGS += ioam6.sh
32
33
TEST_PROGS += gro.sh
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # SPDX-License-Identifier: GPL-2.0
3
+
4
+ NS=" ns-peer-$( mktemp -u XXXXXX) "
5
+
6
+ ip netns add " ${NS} "
7
+ ip -netns " ${NS} " link set lo up
8
+ ip -netns " ${NS} " route add default via 127.0.0.2 dev lo
9
+
10
+ tc -n " ${NS} " qdisc add dev lo ingress
11
+ tc -n " ${NS} " filter add dev lo ingress prio 4 protocol ip \
12
+ bpf object-file nat6to4.bpf.o section schedcls/egress4/snat4 direct-action
13
+
14
+ ip netns exec " ${NS} " \
15
+ bash -c ' echo 012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789abc | socat - UDP4-DATAGRAM:224.1.0.1:6666,ip-multicast-loop=1'
You can’t perform that action at this time.
0 commit comments