修改wscale_set置1的位置
This commit is contained in:
@@ -180,7 +180,6 @@ struct kni_tcpopt_info* kni_get_tcpopt(struct tcphdr* tcphdr,int tcphdr_len){
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case TCPOPT_WINDOW:
|
case TCPOPT_WINDOW:
|
||||||
tcpopt->wscale_set = 1;
|
|
||||||
if (opsize == TCPOLEN_WINDOW){
|
if (opsize == TCPOLEN_WINDOW){
|
||||||
uint8_t snd_wscale = *(uint8_t *)ptr;
|
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).
|
// 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){
|
if(tcpopt->wscale > 14){
|
||||||
tcpopt->wscale = 14;
|
tcpopt->wscale = 14;
|
||||||
}
|
}
|
||||||
|
tcpopt->wscale_set = 1;
|
||||||
//*wscale_perm=1;
|
//*wscale_perm=1;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user