Separate monitoring function plugin
[platform/core/connectivity/stc-manager.git] / plugin / monitor / include / stc-plugin-monitor-ipt.h
1 /*
2  * Copyright (c) 2017 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #ifndef __STC_PLUGIN_MONITOR_IPT_H__
18 #define __STC_PLUGIN_MONITOR_IPT_H__
19
20 #include "helper-nfacct-rule.h"
21
22 stc_error_e stc_monitor_ipt_add_in(struct nfacct_rule *counter);
23 stc_error_e stc_monitor_ipt_add_out(struct nfacct_rule *counter);
24 stc_error_e stc_monitor_ipt_del_in(struct nfacct_rule *counter);
25 stc_error_e stc_monitor_ipt_del_out(struct nfacct_rule *counter);
26
27 stc_error_e stc_monitor_ip6t_add_in(struct nfacct_rule *counter);
28 stc_error_e stc_monitor_ip6t_add_out(struct nfacct_rule *counter);
29 stc_error_e stc_monitor_ip6t_del_in(struct nfacct_rule *counter);
30 stc_error_e stc_monitor_ip6t_del_out(struct nfacct_rule *counter);
31
32 stc_error_e stc_monitor_tether_add_in(struct nfacct_rule *counter,
33                 const gchar *ipaddr);
34 stc_error_e stc_monitor_tether_add_out(struct nfacct_rule *counter,
35                 const gchar *ipaddr);
36 stc_error_e stc_monitor_tether_del_in(struct nfacct_rule *counter,
37                 const gchar *ipaddr);
38 stc_error_e stc_monitor_tether_del_out(struct nfacct_rule *counter,
39                 const gchar *ipaddr);
40
41 #endif /* __STC_PLUGIN_MONITOR_IPT_H__ */