summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
author崔一鸣 <[email protected]>2019-07-03 00:44:57 +0600
committer崔一鸣 <[email protected]>2019-07-03 00:44:57 +0600
commite75e09709a34b77d24e84e1b90be44f60311aa0f (patch)
treedda4daa1483b978338892ba64a8e98259a385c2a /common
parent4d01ff5aadf1f3e99a94dbcb2511295bdbfbb8e9 (diff)
修改wscale_set置1的位置
Diffstat (limited to 'common')
-rw-r--r--common/src/kni_utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/src/kni_utils.cpp b/common/src/kni_utils.cpp
index 1d6ff23..52f8295 100644
--- a/common/src/kni_utils.cpp
+++ b/common/src/kni_utils.cpp
@@ -180,7 +180,6 @@ struct kni_tcpopt_info* kni_get_tcpopt(struct tcphdr* tcphdr,int tcphdr_len){
break;
case TCPOPT_WINDOW:
- tcpopt->wscale_set = 1;
if (opsize == TCPOLEN_WINDOW){
uint8_t snd_wscale = *(uint8_t *)ptr;
// rfc7323 page9: Thus, the shift count MUST be limited to 14 (which allows windows of 2^30 = 1 GiB).
@@ -190,6 +189,7 @@ struct kni_tcpopt_info* kni_get_tcpopt(struct tcphdr* tcphdr,int tcphdr_len){
if(tcpopt->wscale > 14){
tcpopt->wscale = 14;
}
+ tcpopt->wscale_set = 1;
//*wscale_perm=1;
}
break;