修改wscale打开的判断条件, 窗口回复报文的window值改成网络序
This commit is contained in:
@@ -180,6 +180,7 @@ 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).
|
||||
|
||||
Reference in New Issue
Block a user