projects
/
platform
/
core
/
connectivity
/
stc-manager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Check insert option when iptables commit
[platform/core/connectivity/stc-manager.git]
/
include
/
stc-manager.h
diff --git
a/include/stc-manager.h
b/include/stc-manager.h
old mode 100755
(executable)
new mode 100644
(file)
index
14d5cc6
..
9496953
--- a/
include/stc-manager.h
+++ b/
include/stc-manager.h
@@
-24,6
+24,7
@@
#define NET_CLS_SUBSYS "net_cls"
#define STC_BACKGROUND_APP_SUFFIX "_BACKGROUND"
#define NET_CLS_SUBSYS "net_cls"
#define STC_BACKGROUND_APP_SUFFIX "_BACKGROUND"
+#define STC_TETHERING_APP_SUFFIX "_TETHERING"
#define STC_BACKGROUND_APP_ID "BACKGROUND"
#define STC_TOTAL_DATACALL "TOTAL_DATACALL"
#define STC_TOTAL_WIFI "TOTAL_WIFI"
#define STC_BACKGROUND_APP_ID "BACKGROUND"
#define STC_TOTAL_DATACALL "TOTAL_DATACALL"
#define STC_TOTAL_WIFI "TOTAL_WIFI"
@@
-35,6
+36,7
@@
#define STC_IPTABLES "/usr/sbin/iptables"
#define STC_IP6TABLES "/usr/sbin/ip6tables"
#define STC_IPTABLES "/usr/sbin/iptables"
#define STC_IP6TABLES "/usr/sbin/ip6tables"
+#define STC_CMD_INSERT "-I"
#define STC_CMD_SIZE 256
#define STC_DEBUG_LOG (stc_util_get_debuglog())
#define STC_CMD_SIZE 256
#define STC_DEBUG_LOG (stc_util_get_debuglog())
@@
-94,7
+96,8
@@
typedef enum {
typedef enum {
STC_FW_CHAIN_TARGET_NONE,
STC_FW_CHAIN_TARGET_INPUT,
typedef enum {
STC_FW_CHAIN_TARGET_NONE,
STC_FW_CHAIN_TARGET_INPUT,
- STC_FW_CHAIN_TARGET_OUTPUT
+ STC_FW_CHAIN_TARGET_OUTPUT,
+ STC_FW_CHAIN_TARGET_MAX
} stc_fw_chain_target_e;
typedef enum {
} stc_fw_chain_target_e;
typedef enum {
@@
-102,6
+105,8
@@
typedef enum {
STC_FW_RULE_TARGET_ACCEPT,
STC_FW_RULE_TARGET_DROP,
STC_FW_RULE_TARGET_LOG,
STC_FW_RULE_TARGET_ACCEPT,
STC_FW_RULE_TARGET_DROP,
STC_FW_RULE_TARGET_LOG,
+ STC_FW_RULE_TARGET_NFLOG,
+ STC_FW_RULE_TARGET_MAX
} stc_fw_rule_target_e;
/**
} stc_fw_rule_target_e;
/**
@@
-115,6
+120,7
@@
typedef enum {
STC_APP_TYPE_GROUP,
STC_APP_TYPE_WATCH,
STC_APP_TYPE_WIDGET,
STC_APP_TYPE_GROUP,
STC_APP_TYPE_WATCH,
STC_APP_TYPE_WIDGET,
+ STC_APP_TYPE_TETHERING,
STC_APP_TYPE_MAX,
} stc_app_type_e;
STC_APP_TYPE_MAX,
} stc_app_type_e;
@@
-169,10
+175,8
@@
typedef enum {
* @brief Network roaming type
*/
typedef enum {
* @brief Network roaming type
*/
typedef enum {
- STC_ROAMING_UNKNOWN, /**< can't define roaming - roaming unknown */
- STC_ROAMING_ENABLE, /**< in roaming */
STC_ROAMING_DISABLE, /**< not in roaming */
STC_ROAMING_DISABLE, /**< not in roaming */
- STC_ROAMING_
LAST_ELEM,
+ STC_ROAMING_
ENABLE, /**< in roaming */
} stc_roaming_type_e;
/**
} stc_roaming_type_e;
/**