summaryrefslogtreecommitdiff
path: root/ipacm
diff options
context:
space:
mode:
authorUtkarsh Saxena <usaxena@codeaurora.org>2017-04-19 12:34:00 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2017-11-17 02:30:10 -0800
commitba587356df48b0014d57bb0357ef5cec3d56e3b9 (patch)
tree28e7837507e9e309d28b217cefd3a54b7c57c09c /ipacm
parent3dc153cdd48e699d82ef94c7815d4706e87853e1 (diff)
downloadipacfg-mgr-ba587356df48b0014d57bb0357ef5cec3d56e3b9.tar.gz
ipacm: Fix to not filter_notify request
Make changes to not to send filter_notify request with 0 rules when there are no filter rules installed. Change-Id: I9306066a3383340057bdb08c913fcc3c8a7264c7
Diffstat (limited to 'ipacm')
-rw-r--r--ipacm/src/IPACM_Lan.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/ipacm/src/IPACM_Lan.cpp b/ipacm/src/IPACM_Lan.cpp
index 2f18f38..e47767c 100644
--- a/ipacm/src/IPACM_Lan.cpp
+++ b/ipacm/src/IPACM_Lan.cpp
@@ -1124,6 +1124,12 @@ int IPACM_Lan::handle_wan_down(bool is_sta_mode)
close(fd);
return IPACM_FAILURE;
}
+ if (num_wan_ul_fl_rule_v4 == 0)
+ {
+ IPACMERR("No modem UL rules were installed, return...\n");
+ close(fd);
+ return IPACM_FAILURE;
+ }
if (m_filtering.DeleteFilteringHdls(wan_ul_fl_rule_hdl_v4,
IPA_IP_v4, num_wan_ul_fl_rule_v4) == false)
{