No that still didn't helpKlakap 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.
[TCP] My OS acked the packet but windows is still sending
-
- Member
- Posts: 104
- Joined: Tue Aug 17, 2021 10:40 am
- Libera.chat IRC: visitor
- Location: CN
- Contact:
Re: [TCP] My OS acked the packet but windows is still sendin
My github: https://github.com/nifanfa
-
- Member
- Posts: 104
- Joined: Tue Aug 17, 2021 10:40 am
- Libera.chat IRC: visitor
- Location: CN
- Contact:
Re: [TCP] My OS acked the packet but windows is still sendin
One thing should be notice of is that the lag between vmware and windows is very high
My github: https://github.com/nifanfa
-
- Member
- Posts: 104
- Joined: Tue Aug 17, 2021 10:40 am
- Libera.chat IRC: visitor
- Location: CN
- Contact:
Re: [TCP] My OS acked the packet but windows is still sendin
Help wanted!
My github: https://github.com/nifanfa
Re: [TCP] My OS acked the packet but windows is still sendin
You have changed the packet so that the source and destination MACs are correct, haven't you?nifanfa wrote:So all i have to do is send the same packet to windows with PSH ACK flags?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.
-
- Member
- Posts: 104
- Joined: Tue Aug 17, 2021 10:40 am
- Libera.chat IRC: visitor
- Location: CN
- Contact:
Re: [TCP] My OS acked the packet but windows is still sendin
MACs are all correctiansjack wrote:You have changed the packet so that the source and destination MACs are correct, haven't you?nifanfa wrote:So all i have to do is send the same packet to windows with PSH ACK flags?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.
My github: https://github.com/nifanfa
-
- Member
- Posts: 104
- Joined: Tue Aug 17, 2021 10:40 am
- Libera.chat IRC: visitor
- Location: CN
- Contact:
Re: [TCP] My OS acked the packet but windows is still sendin
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
My github: https://github.com/nifanfa
-
- Member
- Posts: 104
- Joined: Tue Aug 17, 2021 10:40 am
- Libera.chat IRC: visitor
- Location: CN
- Contact:
Re: [TCP] My OS acked the packet but windows is still sendin
The cause that make windows continuing resending the packet is the incorrect tcp checksum
My github: https://github.com/nifanfa