diff options
| author | Maciej Żenczykowski <maze@google.com> | 2021-03-16 02:16:14 -0700 |
|---|---|---|
| committer | Maciej Żenczykowski <maze@google.com> | 2021-03-16 04:11:59 -0700 |
| commit | 2732fa4fbb310b261195effdfd9ae3306d97fd79 (patch) | |
| tree | 3e37c037df97f53fe1059f938d8dd55891fb12ba /server/TetherController.cpp | |
| parent | 471892107bda44baf6ced60bbe79e7f7656cafff (diff) | |
TetherController - remove unused mBpfDownstream64Map
We don't yet have any users of this (even the bpf programs don't yet use it).
Either way it should be handled by the tethering mainline module.
Test: atest, TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Icef831e18acdf024251d992037b0d33b20c5c8ab
Diffstat (limited to 'server/TetherController.cpp')
| -rw-r--r-- | server/TetherController.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/server/TetherController.cpp b/server/TetherController.cpp index 8f7279a9..1469cf20 100644 --- a/server/TetherController.cpp +++ b/server/TetherController.cpp @@ -210,11 +210,6 @@ void TetherController::initMaps() { mBpfDownstream6Map.reset(fd); mBpfDownstream6Map.clear(); } - fd = getTetherDownstream64MapFd(); - if (fd >= 0) { - mBpfDownstream64Map.reset(fd); - mBpfDownstream64Map.clear(); - } fd = getTetherDownstream4MapFd(); if (fd >= 0) { mBpfDownstream4Map.reset(fd); @@ -1199,7 +1194,7 @@ std::string l2ToString(const uint8_t* addr, size_t len) { } // namespace void TetherController::dumpBpf(DumpWriter& dw) { - if (!mBpfDownstream6Map.isValid() || !mBpfDownstream64Map.isValid() || + if (!mBpfDownstream6Map.isValid() || !mBpfDownstream4Map.isValid() || !mBpfUpstream6Map.isValid() || !mBpfUpstream4Map.isValid() || !mBpfStatsMap.isValid() || !mBpfLimitMap.isValid()) { dw.println("BPF not supported"); |
