Explicitly increment counter and pass IPV6_ICMP for clarity
Modified logic to directly increment the counter and pass IPV6_ICMP
packets, replacing reliance on "magic failthrough" behavior.
Test: TH
Change-Id: Ie7ff26178f41e9826d712f94510bc80081438d58
diff --git a/src/android/net/apf/ApfFilter.java b/src/android/net/apf/ApfFilter.java
index 098ab27..7a3d55e 100644
--- a/src/android/net/apf/ApfFilter.java
+++ b/src/android/net/apf/ApfFilter.java
@@ -2044,7 +2044,7 @@
// Execution will reach the bottom of the program if none of the filters match,
// which will pass the packet to the application processor.
- maybeSetupCounter(gen, Counter.PASSED_IPV6_ICMP);
+ gen.addCountAndPass(Counter.PASSED_IPV6_ICMP);
// TODO: merge the addCountTrampoline() into generate() method
gen.addCountTrampoline();