diff options
| author | lijie <[email protected]> | 2018-12-07 20:02:24 +0800 |
|---|---|---|
| committer | lijie <[email protected]> | 2018-12-07 20:02:24 +0800 |
| commit | d626a2162b0ba811f7e4c5bf253f33e5170b14c7 (patch) | |
| tree | 4b9e4f0c6e03859cd1f519ca70a2f7334913cc57 /include | |
| parent | ac94ad0124de7a529854ba7e3914ac26b8255ffe (diff) | |
增加调试信息,方便调试link id
Diffstat (limited to 'include')
| -rw-r--r-- | include/mrl_redis.h | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/include/mrl_redis.h b/include/mrl_redis.h index 1b19cd5..252e133 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;
-uint32_t dip;
-uint16_t sport;
-uint16_t dport;
+uint32_t sip;//network order
+uint32_t dip;//network order
+uint16_t sport;//network order
+uint16_t dport;//network order
};
struct mrl_nominee_item{
@@ -50,20 +50,7 @@ struct mrl_candidate_item{ char effective_range[MRL_STR_EFFEC_RANGE_LEN];
char op_time[MRL_DATE_LEN];
};
-/*
-struct mrl_dnat_policy_item{
- int config_id;
- char original_dest_ip[MRL_STR_IP_LEN];
- char original_dest_port[MRL_STR_PORT_LEN];
- char original_protocol[MRL_STR_PROT_LEN];
- char translated_dest_ip[MRL_STR_PROT_LEN];
- char translated_dest_port[MRL_STR_PROT_LEN];
- int do_log;
- int action;
- int service;
- int is_valid;
-};
-*/
+
MESA_htable_handle mrl_htable_init(void * fn_data_free_cb);
//void ht_candidate_free_cb(void * data);
@@ -71,7 +58,8 @@ 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);
+bool mrl_identify_nominee(struct streaminfo *mystream,void *rawpkt);
+//bool mrl_identify_nominee(struct streaminfo *mystream);
#endif
|
