View | Details | Raw Unified | Return to bug 2110
Collapse All | Expand All

(-)a/src/wave/examples/vanet-routing-compare.cc (-10 / +11 lines)
 Lines 261-267    Link Here 
261
  : m_RxBytes (0),
261
  : m_RxBytes (0),
262
    m_cumulativeRxBytes (0),
262
    m_cumulativeRxBytes (0),
263
    m_RxPkts (0),
263
    m_RxPkts (0),
264
    m_cumulativeRxPkts (0)
264
    m_cumulativeRxPkts (0),
265
    m_TxBytes (0),
266
    m_cumulativeTxBytes (0),
267
    m_TxPkts (0),
268
    m_cumulativeTxPkts (0)
265
{
269
{
266
}
270
}
267
271
 Lines 562-567    Link Here 
562
566
563
  switch (m_protocol)
567
  switch (m_protocol)
564
    {
568
    {
569
    case 0:
570
      m_protocolName = "NONE";
571
      break;
565
    case 1:
572
    case 1:
566
      if (m_routingTables != 0)
573
      if (m_routingTables != 0)
567
        {
574
        {
 Lines 570-590    Link Here 
570
      list.Add (olsr, 100);
577
      list.Add (olsr, 100);
571
      m_protocolName = "OLSR";
578
      m_protocolName = "OLSR";
572
      break;
579
      break;
573
    case 0:
574
    case 2:
580
    case 2:
575
      if (m_routingTables != 0)
581
      if (m_routingTables != 0)
576
        {
582
        {
577
          aodv.PrintRoutingTableAllAt (rtt, rtw);
583
          aodv.PrintRoutingTableAllAt (rtt, rtw);
578
        }
584
        }
579
      list.Add (aodv, 100);
585
      list.Add (aodv, 100);
580
      if (m_protocol == 0)
586
      m_protocolName = "AODV";
581
        {
582
          m_protocolName = "NONE";
583
        }
584
      else
585
        {
586
          m_protocolName = "AODV";
587
        }
588
      break;
587
      break;
589
    case 3:
588
    case 3:
590
      if (m_routingTables != 0)
589
      if (m_routingTables != 0)
 Lines 595-604    Link Here 
595
      m_protocolName = "DSDV";
594
      m_protocolName = "DSDV";
596
      break;
595
      break;
597
    case 4:
596
    case 4:
597
      // setup is later
598
      m_protocolName = "DSR";
598
      m_protocolName = "DSR";
599
      break;
599
      break;
600
    default:
600
    default:
601
      NS_FATAL_ERROR ("No such protocol:" << m_protocol);
601
      NS_FATAL_ERROR ("No such protocol:" << m_protocol);
602
      break;
602
    }
603
    }
603
604
604
  if (m_protocol < 4)
605
  if (m_protocol < 4)

Return to bug 2110