增加设置upstream, downstream的TTL或MaxHop功能,便于在捕获的报文中区分上、下行连接。

This commit is contained in:
Lu Qiuwen
2018-11-08 19:14:47 +08:00
parent 4320971285
commit d83348f41d
3 changed files with 56 additions and 4 deletions

View File

@@ -32,6 +32,7 @@ enum TFE_STAT_FIELD
struct tfe_proxy_tcp_options
{
/* TCP OPTIONS */
int sz_rcv_buffer;
int sz_snd_buffer;
int so_keepalive;
@@ -39,6 +40,10 @@ struct tfe_proxy_tcp_options
int tcp_keepintvl;
int tcp_keepcnt;
int tcp_user_timeout;
/* TRACE FOR DEBUG */
int tcp_ttl_upstream;
int tcp_ttl_downstream;
};
struct tfe_proxy_accept_para