Decrypted Traffic Steering 回流回注测试通过
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include <event2/event.h>
|
||||
#include <sender_scm.h>
|
||||
#include <ssl_stream_core.h>
|
||||
#include <net/if.h>
|
||||
|
||||
struct ssl_mgr;
|
||||
struct key_keeper;
|
||||
@@ -60,6 +61,15 @@ struct tfe_proxy_tcp_options
|
||||
int tcp_ttl_downstream;
|
||||
};
|
||||
|
||||
struct tfe_traffic_steering_options
|
||||
{
|
||||
int enable;
|
||||
int so_mask_client;
|
||||
int so_mask_server;
|
||||
char device_client[IFNAMSIZ];
|
||||
char device_server[IFNAMSIZ];
|
||||
};
|
||||
|
||||
struct tfe_proxy_rate_limit_options
|
||||
{
|
||||
unsigned int read_rate;
|
||||
@@ -141,6 +151,8 @@ struct tfe_proxy
|
||||
|
||||
/* load balancing */
|
||||
enum tfe_load_balance_algo load_balance;
|
||||
|
||||
struct tfe_traffic_steering_options traffic_steering_options;
|
||||
};
|
||||
|
||||
extern struct tfe_proxy * g_default_proxy;
|
||||
@@ -152,6 +164,6 @@ struct tfe_thread_ctx * tfe_proxy_thread_ctx_acquire(struct tfe_proxy * ctx);
|
||||
void tfe_proxy_thread_ctx_release(struct tfe_thread_ctx * thread_ctx);
|
||||
|
||||
struct tfe_proxy * tfe_proxy_new(const char * profile);
|
||||
int tfe_proxy_fds_accept(struct tfe_proxy * ctx, int fd_downstream, int fd_upstream, struct tfe_cmsg * cmsg);
|
||||
int tfe_proxy_fds_accept(struct tfe_proxy * ctx, int fd_downstream, int fd_upstream, int fd_fake_c, int fd_fake_s, struct tfe_cmsg * cmsg);
|
||||
void tfe_proxy_run(struct tfe_proxy * proxy);
|
||||
int tfe_thread_set_affinity(int core_id);
|
||||
|
||||
Reference in New Issue
Block a user