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;