summaryrefslogtreecommitdiff
path: root/server/ControllersTest.cpp
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2019-06-28 19:22:01 +0900
committerMaciej Żenczykowski <maze@google.com>2019-07-01 14:20:11 -0700
commit91fd580aa6cfe897643ad495ca0f5002574e674d (patch)
treea426bf29e8eeb2741e4b86154aa3f1eb9892e446 /server/ControllersTest.cpp
parentaffae59a22c178be0bb522610160c5845a7b6dc8 (diff)
Drop packets to the clat address.
These packets are not needed for 464xlat to function because clatd reads packets from packet sockets, which run before iptables, and the TC action also happens before packet sockets. Their existence complicates data usage accounting, and in certain situations results in applications receiving duplicate UDP packets. Bug: 65674744 Bug: 136193260 Test: atest netd_unit_test Change-Id: I26bd8a1e7a54dbac86971b4e62f88f46ae5466f1
Diffstat (limited to 'server/ControllersTest.cpp')
-rw-r--r--server/ControllersTest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/ControllersTest.cpp b/server/ControllersTest.cpp
index cc8b1aaa..ebaa38f6 100644
--- a/server/ControllersTest.cpp
+++ b/server/ControllersTest.cpp
@@ -96,6 +96,8 @@ TEST_F(ControllersTest, TestInitIptablesRules) {
"*raw\n"
":PREROUTING -\n"
"-F PREROUTING\n"
+ ":clat_raw_PREROUTING -\n"
+ "-A PREROUTING -j clat_raw_PREROUTING\n"
":bw_raw_PREROUTING -\n"
"-A PREROUTING -j bw_raw_PREROUTING\n"
":idletimer_raw_PREROUTING -\n"