From e75e09709a34b77d24e84e1b90be44f60311aa0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B4=94=E4=B8=80=E9=B8=A3?= Date: Wed, 3 Jul 2019 00:44:57 +0600 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9wscale=5Fset=E7=BD=AE1?= =?UTF-8?q?=E7=9A=84=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/src/kni_utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;