aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/psock_snd.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/net/psock_snd.c')
-rw-r--r--tools/testing/selftests/net/psock_snd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/psock_snd.c b/tools/testing/selftests/net/psock_snd.c
index 7d15e10a9fb6..edf1e6f80d41 100644
--- a/tools/testing/selftests/net/psock_snd.c
+++ b/tools/testing/selftests/net/psock_snd.c
@@ -389,6 +389,8 @@ int main(int argc, char **argv)
error(1, errno, "ip link set mtu");
if (system("ip addr add dev lo 172.17.0.1/24"))
error(1, errno, "ip addr add");
+ if (system("sysctl -w net.ipv4.conf.lo.accept_local=1"))
+ error(1, errno, "sysctl lo.accept_local");
run_test();