summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorfumingwei <[email protected]>2023-04-28 18:03:22 +0800
committerfumingwei <[email protected]>2023-04-28 18:19:10 +0800
commit2e19f0a9d79a43f3a419830a9df9c1bf384ada32 (patch)
treec8371825f04f624ce8dffe3cf2d16e80c7f9e63b /common
parent19d0a2bd4867f81e2d747e55af950d409538de1b (diff)
feature:TSG-14915:kni适配新版本tfe cmsg修改
Diffstat (limited to 'common')
-rw-r--r--common/include/kni_cmsg.h24
1 files changed, 18 insertions, 6 deletions
diff --git a/common/include/kni_cmsg.h b/common/include/kni_cmsg.h
index d0a105b..4e9c507 100644
--- a/common/include/kni_cmsg.h
+++ b/common/include/kni_cmsg.h
@@ -32,8 +32,12 @@ enum tfe_cmsg_tlv_type
TFE_CMSG_TCP_RESTORE_TS_CLIENT_VAL = 0xe,
TFE_CMSG_TCP_RESTORE_TS_SERVER_VAL = 0xf,
- TFE_CMSG_POLICY_ID = 0x10,
+ TFE_CMSG_POLICY_ID = 0x10, // size uint64_t
TFE_CMSG_STREAM_TRACE_ID = 0x11,
+ TFE_CMSG_TCP_OPTION_PROFILE_ID, // size int
+ TFE_CMSG_DECRYPTION_PROFILE_ID, // size int
+ TFE_CMSG_KEYRING_FOR_TRUSTED_ID, // size int
+ TFE_CMSG_KEYRING_FOR_UNTRUSTED, // size int
TFE_CMSG_SSL_INTERCEPT_STATE, //size uint64_t, 0-passthrough, 1-intercept, 2-shutdown, referer from enum ssl_stream_action
TFE_CMSG_SSL_UPSTREAM_LATENCY, //size uint64_t, milisecond
@@ -47,21 +51,29 @@ enum tfe_cmsg_tlv_type
TFE_CMSG_DST_MAC,
/* TCP option information */
- TFE_CMSG_DOWNSTREAM_TCP_NODELAY,
+ TFE_CMSG_DOWNSTREAM_TCP_MSS_ENABLE,
+ TFE_CMSG_DOWNSTREAM_TCP_MSS_VALUE,
+ TFE_CMSG_DOWNSTREAM_TCP_NODELAY,
TFE_CMSG_DOWNSTREAM_TCP_TTL,
TFE_CMSG_DOWNSTREAM_TCP_KEEPALIVE,
TFE_CMSG_DOWNSTREAM_TCP_KEEPCNT,
TFE_CMSG_DOWNSTREAM_TCP_KEEPIDLE,
TFE_CMSG_DOWNSTREAM_TCP_KEEPINTVL,
TFE_CMSG_DOWNSTREAM_TCP_USER_TIMEOUT,
- TFE_CMSG_UPSTREAM_TCP_NODELAY,
- TFE_CMSG_UPSTREAM_TCP_TTL,
- TFE_CMSG_UPSTREAM_TCP_KEEPALIVE,
- TFE_CMSG_UPSTREAM_TCP_KEEPCNT,
+
+ TFE_CMSG_UPSTREAM_TCP_MSS_ENABLE,
+ TFE_CMSG_UPSTREAM_TCP_MSS_VALUE,
+ TFE_CMSG_UPSTREAM_TCP_NODELAY,
+ TFE_CMSG_UPSTREAM_TCP_TTL,
+ TFE_CMSG_UPSTREAM_TCP_KEEPALIVE,
+ TFE_CMSG_UPSTREAM_TCP_KEEPCNT,
TFE_CMSG_UPSTREAM_TCP_KEEPIDLE,
TFE_CMSG_UPSTREAM_TCP_KEEPINTVL,
TFE_CMSG_UPSTREAM_TCP_USER_TIMEOUT,
+
+ TFE_CMSG_HIT_NO_INTERCEPT, // size uint8_t
TFE_CMSG_TCP_PASSTHROUGH,
+ TFE_CMSG_TCP_DECRYPTED_TRAFFIC_STEERING,
// share session attribute
TFE_CMSG_SRC_SUB_ID, // string max size 256