diff options
author | Aaron Huang <huangaaron@google.com> | 2019-01-15 16:53:51 +0800 |
---|---|---|
committer | Chalard Jean <jchalard@google.com> | 2019-02-06 22:51:49 +0900 |
commit | 7db6a11f12cca838ba7772f6067be0a7bbf39c69 (patch) | |
tree | 23ac6404251ca9500270de95d66fcd1cd19506cb /src/android/net/apf/ApfGenerator.java | |
parent | cd924e577e2360ce9e4ff9934ec52856e91d6c1a (diff) |
[KA07] Drop TCP keepalive ack packets
To support TCP keepalive offload, APF filter needs to add program
for dropping keepalive ack packets when offload is starting.
Bug: 114151147
Test: runtest frameworks-net -c android.net.apf.ApfTest
Change-Id: If16a9bc04eb29dfedb950b6e4c85fe9ad4cf259f
Diffstat (limited to 'src/android/net/apf/ApfGenerator.java')
-rw-r--r-- | src/android/net/apf/ApfGenerator.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/android/net/apf/ApfGenerator.java b/src/android/net/apf/ApfGenerator.java index 87a1b5e..809327a 100644 --- a/src/android/net/apf/ApfGenerator.java +++ b/src/android/net/apf/ApfGenerator.java @@ -476,7 +476,7 @@ public class ApfGenerator { /** * Add an instruction to the end of the program to load 16-bits from the packet into - * {@code register}. The offset of the loaded 16-bits from the begining of the packet is + * {@code register}. The offset of the loaded 16-bits from the beginning of the packet is * the sum of {@code offset} and the value in register R1. */ public ApfGenerator addLoad16Indexed(Register register, int offset) { @@ -488,7 +488,7 @@ public class ApfGenerator { /** * Add an instruction to the end of the program to load 32-bits from the packet into - * {@code register}. The offset of the loaded 32-bits from the begining of the packet is + * {@code register}. The offset of the loaded 32-bits from the beginning of the packet is * the sum of {@code offset} and the value in register R1. */ public ApfGenerator addLoad32Indexed(Register register, int offset) { |