summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorHugo Benichi <hugobenichi@google.com>2017-04-07 15:20:56 +0900
committerHugo Benichi <hugobenichi@google.com>2017-05-10 09:19:12 +0900
commitec07fbc9ed0a0b007979ca668a6d00d1efe3939c (patch)
treed1d2539a4c46de0a464cf75c2ccd35519af11080 /rs/java/android/renderscript/ProgramStore.java
parentbbc764e83af47a09f69a378eefdbd2c500c9889f (diff)
NetworkStatsFactory: fix double accounting on IPv6 only networks
For 464xlat scenarios on IPv6 networks, the clatd interface setup introduces double counting of apps ipv4 traffic. NetworkStatsFactory was accounting for this on the tx path, but not on the rx path. Also it did not accounted for the 20 bytes added by the IPv6 header. This patch subtract correctly the rx and tx traffic from the root uid on the underlying interface, and also adds correctly the 20 bytes cost per packet on the stacked interface for 464xlat traffic. Test: added several new unit tests, based on synthetic data and real data also. Bug: 33681750 Change-Id: I4867fe181938d94b5594b3d88896a3c4e01d895c Merged-In: I2675643b220acbc6110179fa937d4c313b6f5e32 (cherry picked from commit e1bb3a14d1ee1aba2f92e5bccf659774699eaffe)
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions