适配tfe_stream_addr;为了编译通过,注释mirror_stream.cpp中的代码;
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
#pragma once
|
||||
#include <tfe_stream.h>
|
||||
|
||||
int decrypt_mirror_init(void *proxy);
|
||||
|
||||
enum tfe_stream_action decrypt_mirror_on_open_cb(const struct tfe_stream * stream, unsigned int thread_id,
|
||||
enum tfe_conn_dir dir, const unsigned char * data, size_t len, void ** pme);
|
||||
|
||||
enum tfe_stream_action decrypt_mirror_on_data_cb(const struct tfe_stream * stream, unsigned int thread_id,
|
||||
enum tfe_conn_dir dir, const unsigned char * data, size_t len, void ** pme);
|
||||
|
||||
void decrypt_mirror_on_close_cb(const struct tfe_stream * stream, unsigned int thread_id,
|
||||
enum tfe_stream_close_reason reason, void ** pme);
|
||||
void decrypt_mirror_deinit(void);
|
||||
|
||||
@@ -41,7 +41,7 @@ Return:
|
||||
0:succes
|
||||
<0:error
|
||||
***************************************************************************/
|
||||
int mirror_stream_open(struct origin_stream_addr* addr,void** pme);
|
||||
int mirror_stream_open(int thread_id, const struct tfe_stream_addr* addr,void** pme);
|
||||
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ Return:
|
||||
0:succes
|
||||
<0:error
|
||||
***************************************************************************/
|
||||
int mirror_stream_write(enum tfe_conn_dir cur_dir,const unsigned char * data, size_t len, void** pme,int thread_seq);
|
||||
int mirror_stream_write(int cur_dir,const unsigned char * data, size_t len, void** pme,int thread_id);
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ struct deliver_comm_info
|
||||
|
||||
struct deliver_pkt_info
|
||||
{
|
||||
enum tfe_conn_dir dir;
|
||||
int dir;
|
||||
unsigned int seq; //host order
|
||||
unsigned int ack; //host order
|
||||
unsigned int len; //host order,tcp payload len
|
||||
@@ -99,7 +99,7 @@ struct deliver_session_info
|
||||
struct deliver_pme_info
|
||||
{
|
||||
unsigned char dst_macaddr[DELIVER_MACADDR_LEN];
|
||||
struct origin_stream_addr addr_info;
|
||||
struct tfe_stream_addr* addr_info;
|
||||
struct deliver_pkt_info pkt_info;
|
||||
struct deliver_session_info session_info;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user