diff options
| author | lijie <[email protected]> | 2018-11-11 15:45:10 +0800 |
|---|---|---|
| committer | lijie <[email protected]> | 2018-11-11 15:45:10 +0800 |
| commit | 417434fbc0bde8352a17555c1964851ac3b10b9a (patch) | |
| tree | e82ccba3f6820a0218bb9d69e34fc83c32bcfe96 /include | |
测试完成读取配置文件功能
Diffstat (limited to 'include')
| -rw-r--r-- | include/mr_redis.h | 49 | ||||
| -rw-r--r-- | include/mrl_base.h | 3 | ||||
| -rw-r--r-- | include/mrl_packet.h | 2 |
3 files changed, 54 insertions, 0 deletions
diff --git a/include/mr_redis.h b/include/mr_redis.h new file mode 100644 index 0000000..63883d7 --- /dev/null +++ b/include/mr_redis.h @@ -0,0 +1,49 @@ +struct mrl_nominee_item{
+ int region_id;
+ int group_id;
+ int addr_type;
+ char src_ip[MRL_STR_IP_LEN];
+ char mask_src_ip[MRL_STR_IP_LEN];
+ char dport[MRL_STR_PORT_LEN];
+ char mask_dport[MRL_STR_PORT_LEN];
+ int protocol;
+ int direction;
+ int is_vaild;
+ int action;
+ int service;
+ char date[DATE_LEN];
+ int type;
+ int strategy_group_id;
+};
+
+struct mrl_vxlan_info{
+ char vxlan_outer_local_mac[MRL_STR_MAC_LEN];//���յ������ݰ��ı����豸MAC��ַ
+ char vxlan_outer_gdev_mac[MRL_STR_MAC_LEN];//���յ������ݰ��Ĵ����豸MAC��ַ
+ char vxlan_outer_local_ip[MRL_STR_IP_LEN];
+ char vxlan_outer_gdev_ip[MRL_STR_IP_LEN];//�����豸IP
+ char vxlan_outer_gdev_port[MRL_STR_PORT_LEN];
+ char vxlan_outer_local_port[MRL_STR_PORT_LEN];
+ unsigned char vxlan_encap_type;
+ int vxlan_link_id;
+ unsigned char vxlan_link_dir;
+ char vxlan_inner_smac[MRL_STR_MAC_LEN];
+ char vxlan_inner_dmac[MRL_STR_MAC_LEN];
+};
+struct mrl_candidate_item{
+ int candidate_id;
+ int addr_type;
+ char client_ip[MRL_STR_IP_LEN];//�ͻ���IP
+ int type;
+ int location;
+ int group_id;
+ char mrl_ip[MRL_STR_IP_LEN];
+ struct mrl_vxlan_info vxlan_info;
+};
+
+MESA_htable_handle mrl_htable_init();
+Maat_feather_t mrl_Maat_feather_init(const char * instance_name,const char *table_name, Maat_start_callback_t *start,Maat_update_callback_t *update,Maat_finish_callback_t *finish,void *u_para);
+void nominee_update_cb(int table_id,const char* table_line,void* u_para);
+void candidate_update_cb(int table_id,const char* table_line,void* u_para);
+
+
+
diff --git a/include/mrl_base.h b/include/mrl_base.h new file mode 100644 index 0000000..d7a848b --- /dev/null +++ b/include/mrl_base.h @@ -0,0 +1,3 @@ +unsigned int mrl_split_str(char *str, const char *delim, char **dest);
+
+
diff --git a/include/mrl_packet.h b/include/mrl_packet.h new file mode 100644 index 0000000..47224f7 --- /dev/null +++ b/include/mrl_packet.h @@ -0,0 +1,2 @@ +void mrl_socket_init();
+
|
