修改wscale打开的判断条件, 窗口回复报文的window值改成网络序

This commit is contained in:
崔一鸣
2019-07-02 18:47:48 +06:00
parent 031d8d7168
commit 4d01ff5aad
3 changed files with 5 additions and 3 deletions

View File

@@ -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).