summaryrefslogtreecommitdiff
path: root/server/TetherController.cpp
diff options
context:
space:
mode:
authorChenbo Feng <fengc@google.com>2018-03-15 17:59:58 -0700
committerChenbo Feng <fengc@google.com>2018-03-26 14:43:31 -0700
commit1651348ccaf8a2403c3ddcb62385265bbbe5775a (patch)
treec0001251829b6bbe1904ea2b74060cb67e7a7dd9 /server/TetherController.cpp
parent2cc3d6ae2df3bf8434d236ff87a0a1cad4ac5828 (diff)
Refactor bpf map iterate process
The bpf map read process is very similiar for different kind of maps. It can be generalized into a single generic function and take callback functions from the caller. The caller handles the map entry read out from the generic map iterate function by the lambda expression passed in. Bug: 72111305 Test: ./libbpf_test run cts -m CtsNetTestCases -t android.net.cts.TrafficStatsTest Change-Id: I244f306d05f6f5dab36861fc66375963869ea150
Diffstat (limited to 'server/TetherController.cpp')
0 files changed, 0 insertions, 0 deletions