From 97f3e82ac6d5b45c47362cb8d036e646ed04bcec Mon Sep 17 00:00:00 2001 From: liuyang Date: Mon, 30 Jul 2018 14:20:36 +0800 Subject: [PATCH] =?UTF-8?q?20180730-2=20mss=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kni.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kni.c b/kni.c index 738ed3e..70b4bd5 100644 --- a/kni.c +++ b/kni.c @@ -964,6 +964,7 @@ int tcprepair_get_state(struct kni_tcp_state* fake_client,struct kni_tcp_state* fake_client->seq=ntohl(tcphdr->seq); fake_client->ack=ntohl(tcphdr->ack_seq); fake_client->mss_src=pmeinfo->mss[KNI_DIR_C2S]; + fake_client->mss_dst=pmeinfo->mss[KNI_DIR_S2C]; fake_client->wscale_src=pmeinfo->wnscal[KNI_DIR_C2S]; fake_client->wscale_dst=pmeinfo->wnscal[KNI_DIR_S2C]; fake_client->sack_src=pmeinfo->sack[KNI_DIR_C2S]; @@ -978,6 +979,7 @@ int tcprepair_get_state(struct kni_tcp_state* fake_client,struct kni_tcp_state* fake_server->seq=ntohl(tcphdr->ack_seq); fake_server->ack=ntohl(tcphdr->seq); fake_server->mss_src=pmeinfo->mss[KNI_DIR_S2C]; + fake_server->mss_dst=pmeinfo->mss[KNI_DIR_C2S]; fake_server->wscale_src=pmeinfo->wnscal[KNI_DIR_S2C]; fake_server->wscale_dst=pmeinfo->wnscal[KNI_DIR_C2S]; fake_server->sack_src=pmeinfo->sack[KNI_DIR_S2C];