Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46197bb4 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "DO NOT MERGE: Revert: use legacy way to get tcp packet count"

parents 3c877d5b 2deb1e87
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -955,14 +955,8 @@ public class NetworkStatsService extends INetworkStatsService.Stub {

    @Override
    public long getIfaceStats(String iface, int type) {
        // eBPF code doesn't provide per-interface TCP counters. Use xt_qtaguid for now.
        // TODO: delete getMobileTcp(Rx|Tx)Packets entirely. See b/110443385 .
        if (type == TYPE_TCP_TX_PACKETS || type == TYPE_TCP_RX_PACKETS) {
            return nativeGetIfaceStat(iface, type, false);
        } else {
        return nativeGetIfaceStat(iface, type, checkBpfStatsEnable());
    }
    }

    @Override
    public long getTotalStats(int type) {