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 |
|
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) |
|
|
Here is my reading code results, Please review it. #41 |
|
It's just for my own reference to reconstruct the code. These pictures are
three handshakes and four farewell waves of the TCP protocol.
|




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?
All reactions