summaryrefslogtreecommitdiff
path: root/include/mrl_redis.h
diff options
context:
space:
mode:
authorlijie <[email protected]>2018-12-10 10:25:03 +0800
committerlijie <[email protected]>2018-12-10 10:25:03 +0800
commitcac5c951f20640fa89e23adb55dec8d5ac66a5cc (patch)
tree6e9242cdd2b2a80464537d006212b9de27b159b0 /include/mrl_redis.h
parentd626a2162b0ba811f7e4c5bf253f33e5170b14c7 (diff)
修改部分配置文件选项;修改日志输出形式;修改nominee_key,从uint32_t修改为char *HEADv1.0.0master
Diffstat (limited to 'include/mrl_redis.h')
-rw-r--r--include/mrl_redis.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/mrl_redis.h b/include/mrl_redis.h
index 252e133..8d56601 100644
--- a/include/mrl_redis.h
+++ b/include/mrl_redis.h
@@ -8,10 +8,10 @@
#define IR_DNAT_POLICY_TABLE_NAME "IR_DNAT_POLICY"
struct mrl_ht_nominee_key{
-uint32_t sip;//network order
-uint32_t dip;//network order
-uint16_t sport;//network order
-uint16_t dport;//network order
+char sip[MRL_STR_IP_LEN];
+char dip[MRL_STR_IP_LEN];
+uint16_t sport;//host order
+uint16_t dport;//host order
};
struct mrl_nominee_item{
@@ -58,8 +58,7 @@ void ht_nominee_free_cb(void * data);
void Maat_set_cmd_line(Maat_feather_t feather, struct mrl_candidate_item *candidate_item);
Maat_feather_t mrl_Maat_feather_init();
void nominee_update_cb(int table_id,const char* table_line,void* u_para);
-bool mrl_identify_nominee(struct streaminfo *mystream,void *rawpkt);
-//bool mrl_identify_nominee(struct streaminfo *mystream);
+bool mrl_identify_nominee(struct streaminfo *mystream);
#endif