summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorfumingwei <[email protected]>2020-08-03 14:58:26 +0800
committerfumingwei <[email protected]>2020-08-03 14:58:26 +0800
commitb74d15efecfdde767f0ff5a66c85efa49b220452 (patch)
tree220b55ffc720cf1a8323703514bcf2826699d40d /common
parent1c26e6aba1b3be837fef60a89d27f7f1a25f8e2c (diff)
1、修改knini_cmsg枚举 2、修改maat命不中sni的问题
Diffstat (limited to 'common')
-rw-r--r--common/include/kni_cmsg.h37
1 files changed, 19 insertions, 18 deletions
diff --git a/common/include/kni_cmsg.h b/common/include/kni_cmsg.h
index f4efe4c..0763dc2 100644
--- a/common/include/kni_cmsg.h
+++ b/common/include/kni_cmsg.h
@@ -1,6 +1,6 @@
#pragma once
-#define KNI_CMSG_TLV_NR_MAX 64
+//#define KNI_CMSG_TLV_NR_MAX 64
struct kni_cmsg;
struct kni_cmsg_serialize_header;
@@ -45,25 +45,26 @@ enum tfe_cmsg_tlv_type
TFE_CMSG_DST_MAC,
/* TCP option information */
- TFE_CMSG_DOWNSTREAM_TCP_MAXSEG = 0x40, //size int
- TFE_CMSG_DOWNSTREAM_TCP_NODELAY = 0x41, //size int
- TFE_CMSG_DOWNSTREAM_TCP_TTL = 0x42, //size int
- TFE_CMSG_DOWNSTREAM_TCP_KEEPALIVE = 0x43, //size int
- TFE_CMSG_DOWNSTREAM_TCP_KEEPCNT = 0x44, //size int
- TFE_CMSG_DOWNSTREAM_TCP_KEEPIDLE = 0x45, //size int
- TFE_CMSG_DOWNSTREAM_TCP_KEEPINTVL = 0x46, //size int
- TFE_CMSG_DOWNSTREAM_TCP_USER_TIMEOUT = 0x47, //size int
+ TFE_CMSG_DOWNSTREAM_TCP_MAXSEG,
+ 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_MAXSEG = 0x50, //size int
- TFE_CMSG_UPSTREAM_TCP_NODELAY = 0x51, //size int
- TFE_CMSG_UPSTREAM_TCP_TTL = 0x52, //size int
- TFE_CMSG_UPSTREAM_TCP_KEEPALIVE = 0x53, //size int
- TFE_CMSG_UPSTREAM_TCP_KEEPCNT = 0x54, //size int
- TFE_CMSG_UPSTREAM_TCP_KEEPIDLE = 0x55, //size int
- TFE_CMSG_UPSTREAM_TCP_KEEPINTVL = 0x56, //size int
- TFE_CMSG_UPSTREAM_TCP_USER_TIMEOUT = 0x57, //size int
+ TFE_CMSG_UPSTREAM_TCP_MAXSEG,
+ 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_TCP_PASSTHROUGH = 0x60, //size int
+ TFE_CMSG_TCP_PASSTHROUGH,
+ KNI_CMSG_TLV_NR_MAX,
};
struct kni_cmsg* kni_cmsg_init();