Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Lin <glin@suse.com>2019-11-06 17:49:33 +0800
committerGary Lin <glin@suse.com>2019-11-06 17:49:39 +0800
commitb1f748d158088db34beb469d648089eb03380a5c (patch)
treeb3e0e60cb74ada7c1c87700c4944101832811231
parent9198c60bf8c8621f25ef6df12f6ad45740738553 (diff)
selftests/bpf: Set rp_filter in test_flow_dissector
(bsc#1155518). suse-commit: deeacc37241013f145e3facd7496cd0e899029a5
-rwxr-xr-xtools/testing/selftests/bpf/test_flow_dissector.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/test_flow_dissector.sh b/tools/testing/selftests/bpf/test_flow_dissector.sh
index d23d4da66b83..e2d06191bd35 100755
--- a/tools/testing/selftests/bpf/test_flow_dissector.sh
+++ b/tools/testing/selftests/bpf/test_flow_dissector.sh
@@ -63,6 +63,9 @@ fi
# Setup
tc qdisc add dev lo ingress
+echo 0 > /proc/sys/net/ipv4/conf/default/rp_filter
+echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
+echo 0 > /proc/sys/net/ipv4/conf/lo/rp_filter
echo "Testing IPv4..."
# Drops all IP/UDP packets coming from port 9