20180730-2

mss更改
This commit is contained in:
liuyang
2018-07-30 14:20:36 +08:00
parent 8f679f7973
commit 97f3e82ac6

2
kni.c
View File

@@ -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];