From 7db6a11f12cca838ba7772f6067be0a7bbf39c69 Mon Sep 17 00:00:00 2001 From: Aaron Huang Date: Tue, 15 Jan 2019 16:53:51 +0800 Subject: [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 --- src/android/net/apf/ApfGenerator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/android/net/apf/ApfGenerator.java') 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) { -- cgit v1.2.3