IPACM: fix incorrect filter index issue
For android targets always 3 private subnet rules are deleted.
But while adding we add only based on the number of private subnets
currently available. This results in incorrect filter index. Make
a change to add always 3 private subnet rules.
Change-Id: I674fc64978c004a0d352afae5eea58bc98dea7d7
diff --git a/ipacm/src/IPACM_Lan.cpp b/ipacm/src/IPACM_Lan.cpp
index f3bb6f8..b8bb97b 100644
--- a/ipacm/src/IPACM_Lan.cpp
+++ b/ipacm/src/IPACM_Lan.cpp
@@ -477,7 +477,13 @@
{
install_ipv6_icmp_flt_rule();
}
+
+#ifdef FEATURE_IPA_ANDROID
+ add_dummy_private_subnet_flt_rule(data->iptype);
+ handle_private_subnet_android(data->iptype);
+#else
handle_private_subnet(data->iptype);
+#endif
if (IPACM_Wan::isWanUP())
{