Page 2 of 2
Re: [TCP] My OS acked the packet but windows is still sendin
Posted: Sat Jan 14, 2023 4:15 pm
by nifanfa
Klakap wrote:I see that you use same source and destination port. I am not TCP expert, but it seems wrong to me. I think you should use different port for you and different port for server.
No that still didn't help
Re: [TCP] My OS acked the packet but windows is still sendin
Posted: Sat Jan 14, 2023 4:24 pm
by nifanfa
One thing should be notice of is that the lag between vmware and windows is very high
Re: [TCP] My OS acked the packet but windows is still sendin
Posted: Sat Jan 14, 2023 11:38 pm
by nifanfa
Help wanted!
Re: [TCP] My OS acked the packet but windows is still sendin
Posted: Sun Jan 15, 2023 2:39 am
by iansjack
nifanfa wrote:Klakap wrote:well I am not sure what is this connection supposed to do, but it seems like you are not responding to request in PSH ACK packet, you just ancknowledge it with length 0, so windows is trying to get some answer from you.
So all i have to do is send the same packet to windows with PSH ACK flags?
You have changed the packet so that the source and destination MACs are correct, haven't you?
Re: [TCP] My OS acked the packet but windows is still sendin
Posted: Sun Jan 15, 2023 6:53 am
by nifanfa
iansjack wrote:nifanfa wrote:Klakap wrote:well I am not sure what is this connection supposed to do, but it seems like you are not responding to request in PSH ACK packet, you just ancknowledge it with length 0, so windows is trying to get some answer from you.
So all i have to do is send the same packet to windows with PSH ACK flags?
You have changed the packet so that the source and destination MACs are correct, haven't you?
MACs are all correct
Re: [TCP] My OS acked the packet but windows is still sendin
Posted: Sun Jan 15, 2023 8:42 am
by nifanfa
The problem is solved. It is caused by that i allocated the network buffer on the stack using "stackalloc byte[]", but I didn't zerofill it. so there are full of garbage data on that address which made TCP go wrong
Re: [TCP] My OS acked the packet but windows is still sendin
Posted: Sun Jan 15, 2023 8:49 am
by nifanfa
The cause that make windows continuing resending the packet is the incorrect tcp checksum