summaryrefslogtreecommitdiff
path: root/src/android/net/apf
diff options
context:
space:
mode:
Diffstat (limited to 'src/android/net/apf')
-rw-r--r--src/android/net/apf/ApfFilter.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/android/net/apf/ApfFilter.java b/src/android/net/apf/ApfFilter.java
index 4fa7d64..8801741 100644
--- a/src/android/net/apf/ApfFilter.java
+++ b/src/android/net/apf/ApfFilter.java
@@ -38,6 +38,7 @@ import android.content.Intent;
import android.content.IntentFilter;
import android.net.LinkAddress;
import android.net.LinkProperties;
+import android.net.TcpKeepalivePacketDataParcelable;
import android.net.apf.ApfGenerator.IllegalInstructionException;
import android.net.apf.ApfGenerator.Register;
import android.net.ip.IpClient.IpClientCallbacksWrapper;
@@ -1489,6 +1490,29 @@ public class ApfFilter {
installNewProgramLocked();
}
+ /**
+ * Add keepalive packet filter.
+ *
+ * @param slot The index used to access the filter.
+ * @param pkt Parameters needed to compose the filter.
+ */
+ public synchronized void addKeepalivePacketFilter(int slot,
+ TcpKeepalivePacketDataParcelable pkt) {
+ // TODO: implement this.
+ Log.e(TAG, "APF function is not implemented: addKeepalivePacketFilter(" + slot + ", "
+ + pkt + ")");
+ }
+
+ /**
+ * Remove keepalive packet filter.
+ *
+ * @param slot The index used to access the filter.
+ */
+ public synchronized void removeKeepalivePacketFilter(int slot) {
+ // TODO: implement this.
+ Log.e(TAG, "APF function is not implemented: removeKeepalivePacketFilter(" + slot + ")");
+ }
+
static public long counterValue(byte[] data, Counter counter)
throws ArrayIndexOutOfBoundsException {
// Follow the same wrap-around addressing scheme of the interpreter.