equal
deleted
inserted
replaced
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 { |