Knox Tizen Wearable SDK
firewall.h
1 /*
2  * Copyright (c) 2000-2017 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * PROPRIETARY/CONFIDENTIAL
5  *
6  * This software is the confidential and proprietary information of
7  * SAMSUNG ELECTRONICS ("Confidential Information").
8  * You shall not disclose such Confidential Information and shall
9  * use it only in accordance with the terms of the license agreement
10  * you entered into with SAMSUNG ELECTRONICS.
11  * SAMSUNG make no representations or warranties about the suitability
12  * of the software, either express or implied, including but not
13  * limited to the implied warranties of merchantability, fitness for
14  * a particular purpose, or non-infringement.
15  * SAMSUNG shall not be liable for any damages suffered by licensee as
16  * a result of using, modifying or distributing this software or its derivatives.
17  */
18 
19 #ifndef LIBMDM_MDM_FIREWALL_H
20 #define LIBMDM_MDM_FIREWALL_H
21 
22 #include "mdm_client_type.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 
73 
114 
155 
197 
252 
317 mdm_result_t mdm_add_iptables_allow_rules(void *p_ruleslist);
318 
385 mdm_result_t mdm_add_iptables_deny_rules(void *p_ruleslist);
386 
446 
488 
530 
572 
614 
654 
694 
760 
829 
889 
933 
1002 mdm_result_t mdm_set_iptables_allow_rules(void *p_ruleslist);
1003 
1064 mdm_result_t mdm_set_iptables_deny_rules(void *p_ruleslist);
1065 
1111 
1157 
1205 mdm_result_t mdm_set_iptables_proxy_rules(char *ip, char *port);
1206 
1266 mdm_result_t mdm_set_iptables_reroute_rules(void *p_ruleslist);
1267 
1273 #ifdef __cplusplus
1274 }
1275 #endif
1276 
1277 #endif // LIBMDM_MDM_FIREWALL_H
mdm_result_t mdm_clean_iptables_reroute_rules(void)
API to clean "reroute rules" in iptables.
mdm_result_t mdm_get_allow_iptables_option(int *p_value)
API to query whether "allow", "deny", and "reroute" rules are enabled or not.
mdm_data_t * mdm_get_iptables_allow_rules(void)
API to get "allow rules".
This structure is used to store GList.
mdm_data_t * mdm_get_iptables_rules(void)
API to get all "allow", "deny", "reroute", and "redirect exceptions" rules.
mdm_result_t mdm_remove_iptables_rules(void)
API to remove "allow", "deny", and "reroute" from iptables.
mdm_result_t mdm_clean_iptables_deny_rules(void)
API to clean "deny rules" in iptables.
mdm_result_t mdm_set_allow_iptables_proxy_option(mdm_status_t status)
API to enable or disable "proxy rule" on iptables.
mdm_result_t mdm_set_allow_iptables_option(mdm_status_t status)
API to enable or disable all "allow", "deny", "reroute", and "redirect exceptions" rules on iptables...
mdm_status_t
MDM Policy status.
mdm_result_t mdm_get_allow_iptables_proxy_option(int *p_value)
API to query whether "proxy" rules are enabled or not.
mdm_result_t mdm_add_iptables_reroute_rules(void *p_ruleslist)
API to add "reroute rules" in iptables.
mdm_result_t mdm_remove_iptables_allow_rules(void *p_ruleslist)
API to remove "allow rules" from iptables.
mdm_result_t mdm_set_iptables_proxy_rules(char *ip, char *port)
API to set a "proxy rule" on iptables. This API is used to setup a transparent HTTP proxy by defining...
mdm_result_t mdm_remove_iptables_reroute_rules(void *p_ruleslist)
API to remove "reroute rules" from iptables.
mdm_result_t mdm_set_iptables_deny_rules(void *p_ruleslist)
API to set "deny rules" to iptables.
mdm_data_t * mdm_get_iptables_proxy_rules(void)
API to get "proxy rules".
mdm_result_t mdm_add_iptables_allow_rules(void *p_ruleslist)
API to add "allow rules" in iptables.
mdm_result_t mdm_clean_iptables_allow_rules(void)
API to clean "allow rules" in iptables.
mdm_result_t
MDM API result.
mdm_result_t mdm_add_iptables_deny_rules(void *p_ruleslist)
API to add "deny rules" in iptables.
mdm_data_t * mdm_get_iptables_reroute_rules(void)
API to get "reroute rules".
mdm_result_t mdm_set_iptables_allow_rules(void *p_ruleslist)
API to set "allow rules" to iptables.
mdm_result_t mdm_set_iptables_reroute_rules(void *p_ruleslist)
API to set "reroute rules" on iptables.
mdm_result_t mdm_clean_iptables_proxy_rules(void)
API to clean "proxy rules" in iptables.
mdm_result_t mdm_remove_iptables_deny_rules(void *p_ruleslist)
API to remove "deny rules" from iptables.
mdm_data_t * mdm_get_iptables_deny_rules(void)
API to get "deny rules".