Replies: 7 comments 3 replies
-
|
About Lines 144 to 154 in 31ca1b3 Is there a potential issue is that this function might not handle certain edge cases correctly? Specifically, when If we change this condition to |
Beta Was this translation helpful? Give feedback.
-
|
Here some ACK packet will discarded. Lines 86 to 92 in a8afef8 We can watch it with this if tcp.inner().syn {
return Ok(stream);
}
if !tcp.inner().rst {
_ = pkt_sender.send(stream.create_rev_packet(RST | ACK, TTL, None, Vec::new())?);
}
if tcp.inner().ack {
log::info!("Invalid TCP packet with ACK flag");
}
Err(IpStackError::InvalidTcpPacket) |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Here is my reading code results, Please review it. #41 |
Beta Was this translation helpful? Give feedback.
-
|
Some pictures. |
Beta Was this translation helpful? Give feedback.
-
|
It's just for my own reference to reconstruct the code. These pictures are
three handshakes and four farewell waves of the TCP protocol.
|
Beta Was this translation helpful? Give feedback.
-
|
Here is a diagram of the refactored code. |
Beta Was this translation helpful? Give feedback.




Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The
containsfunctionipstack/src/stream/tcb.rs
Lines 221 to 223 in 31ca1b3
can change to this?
Beta Was this translation helpful? Give feedback.
All reactions