Fix to delete iptables rule while unsetting restrictions 31/233731/1
authorSemun Lee <semun.lee@samsung.com>
Mon, 18 May 2020 23:30:47 +0000 (08:30 +0900)
committerSemun Lee <semun.lee@samsung.com>
Mon, 18 May 2020 23:30:47 +0000 (08:30 +0900)
We should delete block rules

Change-Id: I4c3db4db451f034a9257ebda234dbfa275c19813
Signed-off-by: Semun Lee <semun.lee@samsung.com>
plugin/monitor/stc-plugin-monitor-rstn.c

index b985baf..5398c1d 100755 (executable)
@@ -622,10 +622,10 @@ static void __rstn_process(enum traffic_restriction_type rstn_type,
                int i;
 
                if (rstn_data->classid == STC_TETHERING_APP_CLASSID)
-                       __rstn_del_ipt_rule(rstn_data->classid, NFACCT_BLOCK,
+                       __rstn_del_ipt_rule(rstn_data->classid, NFACCT_TETH_BLOCK,
                                            rstn_data->iftype);
                else
-                       __rstn_del_ipt_rule(rstn_data->classid, rstn_data->rstn_type,
+                       __rstn_del_ipt_rule(rstn_data->classid, NFACCT_BLOCK,
                                            rstn_data->iftype);
 
                rstn_data->rstn_state = STC_RSTN_STATE_DEACTIVATED;