doc: Fix formatting of code samples

This commit is contained in:
Eduardo Almeida
2024-10-14 15:29:39 +01:00
parent a92941c6ab
commit 5d895f662d
2 changed files with 20 additions and 18 deletions

View File

@@ -120,7 +120,8 @@ You could simply add one, changing the code. Here is the original::
...
else if (tcpflags == (TcpHeader::SYN | TcpHeader::ACK))
{ // No action for received SYN+ACK, it is probably a duplicated packet
{
// No action for received SYN+ACK, it is probably a duplicated packet
}
...
@@ -135,7 +136,8 @@ To log the SYN+ACK case, you can add a new ``NS_LOG_LOGIC`` in the
NS_LOG_FUNCTION(this << tcpHeader);
...
else if (tcpflags == (TcpHeader::SYN | TcpHeader::ACK))
{ // No action for received SYN+ACK, it is probably a duplicated packet
{
// No action for received SYN+ACK, it is probably a duplicated packet
NS_LOG_LOGIC("TcpSocketBase " << this << " ignoring SYN+ACK");
}
...