Skip to content

Commit

Permalink
Simple changed + format
Browse files Browse the repository at this point in the history
  • Loading branch information
charliebarber committed Mar 9, 2024
1 parent 250ec53 commit 0528da7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/simple_dumbbell_topo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,11 @@ std::string delay_serialization = "1.9ms";

NetDeviceContainer* netDeviceToDropPacket = NULL;


// -------------------------------------------------- //
// --- END OF SIMULATION CONFIGURATION PARAMETERS --- //
// -------------------------------------------------- //

// Global Variables
// Global Vars
Ptr<PacketSink> sinker;

int packetsDroppedInQueue = 0;
Expand Down Expand Up @@ -164,9 +163,9 @@ void ExaminePacket(Ptr<const Packet> packet)
packet->PeekHeader(tcpHeader);
uint32_t payloadSize = packet->GetSize();

// Extract the SEQ and ACK numbers
uint32_t seq = tcpHeader.GetSequenceNumber().GetValue();
uint32_t ack = tcpHeader.GetAckNumber().GetValue();
// Extract the SEQ and ACK numbers
uint32_t seq = tcpHeader.GetSequenceNumber().GetValue();
uint32_t ack = tcpHeader.GetAckNumber().GetValue();
std::cout << "[TCP PACKET] [SEQ: " << seq << "] [ACK: " << ack
<< "] [Payload Length: " << payloadSize
<< "] PacketUid: " << packet->GetUid() << std::endl;
Expand Down

0 comments on commit 0528da7

Please sign in to comment.