src/wifi/examples/wifi-phy-test.cc
changeset 9785 97052ab05772
parent 7385 10beb0e53130
child 9802 5dea58a3b261
equal deleted inserted replaced
9784:740a983ed25b 9785:97052ab05772
   185 
   185 
   186 void
   186 void
   187 CollisionExperiment::Receive (Ptr<Packet> p, double snr, WifiMode mode, enum WifiPreamble preamble)
   187 CollisionExperiment::Receive (Ptr<Packet> p, double snr, WifiMode mode, enum WifiPreamble preamble)
   188 {
   188 {
   189   FlowIdTag tag;
   189   FlowIdTag tag;
   190   p->FindFirstMatchingByteTag (tag);
   190   if (p->FindFirstMatchingByteTag (tag))
   191   if (tag.GetFlowId () == m_flowIdA)
   191     {
   192     {
   192       if (tag.GetFlowId () == m_flowIdA)
   193       m_output.receivedA++;
   193         {
   194     }
   194           m_output.receivedA++;
   195   else if (tag.GetFlowId () == m_flowIdB)
   195         }
   196     {
   196       else if (tag.GetFlowId () == m_flowIdB)
   197       m_output.receivedB++;
   197         {
       
   198           m_output.receivedB++;
       
   199         }
   198     }
   200     }
   199 }
   201 }
   200 
   202 
   201 CollisionExperiment::CollisionExperiment ()
   203 CollisionExperiment::CollisionExperiment ()
   202 {
   204 {