summaryrefslogtreecommitdiff
path: root/entry
diff options
context:
space:
mode:
authorluwenpeng <[email protected]>2021-04-20 14:17:38 +0800
committerluwenpeng <[email protected]>2021-04-20 14:17:38 +0800
commitcd3d902a43755fc460fffa2b761df3571cc19f3f (patch)
tree1e50167166e28b5f9fef8265204ee3a595d15b1c /entry
parent3cd503188036aedf55e2610e16c480656dd9b0d7 (diff)
增加 cmsg 字段, KNI 发送 timestamp val 给 TFE
Diffstat (limited to 'entry')
-rw-r--r--entry/src/kni_entry.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/entry/src/kni_entry.cpp b/entry/src/kni_entry.cpp
index 7ebc8bf..d413411 100644
--- a/entry/src/kni_entry.cpp
+++ b/entry/src/kni_entry.cpp
@@ -522,6 +522,12 @@ static unsigned char* kni_cmsg_serialize_header_new(struct pme_info *pmeinfo, st
//server timestamp
ret = wrapped_kni_cmsg_set(cmsg, TFE_CMSG_TCP_RESTORE_TS_SERVER, (const unsigned char*)&(pmeinfo->server_tcpopt.ts_set), 1, pmeinfo);
if(ret < 0) goto error_out;
+ //client timestamp val
+ ret = wrapped_kni_cmsg_set(cmsg, TFE_CMSG_TCP_RESTORE_TS_CLIENT_VAL, (const unsigned char*)&(pmeinfo->client_tcpopt.ts_value), 4, pmeinfo);
+ if(ret < 0) goto error_out;
+ //server timestamp val
+ ret = wrapped_kni_cmsg_set(cmsg, TFE_CMSG_TCP_RESTORE_TS_SERVER_VAL, (const unsigned char*)&(pmeinfo->server_tcpopt.ts_value), 4, pmeinfo);
+ if(ret < 0) goto error_out;
//protocol
ret = wrapped_kni_cmsg_set(cmsg, TFE_CMSG_TCP_RESTORE_PROTOCOL, (const unsigned char*)&protocol_type, 1, pmeinfo);
if(ret < 0) goto error_out;