summaryrefslogtreecommitdiff
path: root/ipacm/src/IPACM_Iface.cpp
diff options
context:
space:
mode:
authorRavi Gummadidala <rgummadi@codeaurora.org>2013-12-18 12:19:47 -0800
committerRavi Gummadidala <rgummadi@codeaurora.org>2013-12-18 15:29:07 -0800
commitcd1732e695ae94766ca62d851e090ce74bdde25c (patch)
tree0f4e33a2e5dc4aa260b33e4d87c22be5c6564556 /ipacm/src/IPACM_Iface.cpp
parentd3f426686c00bda08a752f1a15097f173e4a79b7 (diff)
downloadipacfg-mgr-cd1732e695ae94766ca62d851e090ce74bdde25c.tar.gz
Fix rule index notification to modem: take into account the
private subnet filtering rules Change-Id: I7af4c8c7ac21ac279a83a7bedc0bab7fea718864 Signed-off-by: Ravi Gummadidala <rgummadi@codeaurora.org>
Diffstat (limited to 'ipacm/src/IPACM_Iface.cpp')
-rw-r--r--ipacm/src/IPACM_Iface.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/ipacm/src/IPACM_Iface.cpp b/ipacm/src/IPACM_Iface.cpp
index ecb78d9..af31028 100644
--- a/ipacm/src/IPACM_Iface.cpp
+++ b/ipacm/src/IPACM_Iface.cpp
@@ -76,7 +76,8 @@ IPACM_Iface::IPACM_Iface(int iface_index)
memset(software_routing_fl_rule_hdl, 0, sizeof(software_routing_fl_rule_hdl));
memset(ipv6_addr, 0, sizeof(ipv6_addr));
- flt_rule_count = 0;
+ flt_rule_count_v4 = 0;
+ flt_rule_count_v6 = 0;
query_iface_property();
IPACMDBG(" create iface-index(%d) constructor\n", ipa_if_num);
return;
@@ -666,7 +667,7 @@ int IPACM_Iface::init_fl_rule(ipa_ip_type iptype)
}
else
{
- flt_rule_count += IPV4_DEFAULT_FILTERTING_RULES;
+ flt_rule_count_v4 += IPV4_DEFAULT_FILTERTING_RULES;
/* copy filter hdls */
for (int i = 0; i < IPV4_DEFAULT_FILTERTING_RULES; i++)
{
@@ -754,7 +755,7 @@ int IPACM_Iface::init_fl_rule(ipa_ip_type iptype)
}
else
{
- flt_rule_count += IPV6_DEFAULT_FILTERTING_RULES;
+ flt_rule_count_v6 += IPV6_DEFAULT_FILTERTING_RULES;
/* copy filter hdls */
for (int i = 0;
i < IPV6_DEFAULT_FILTERTING_RULES;