Bug 2489

Summary: vanet-routing-compare.cc example is not generating correct output for WAVE (i.e. mode 3 in .cc file)
Product: ns-3 Reporter: Adarsh Patel <adarshpatel>
Component: wave moduleAssignee: ns-bugs <ns-bugs>
Status: CLOSED DUPLICATE    
Severity: major CC: linlinjavaer
Priority: P5    
Version: ns-3.23   
Hardware: Other   
OS: Linux   
Attachments: At line number 1327: m_80211mode (1) changed to m_80211mode (3) and m_80211mode = 3; is added at line number 2374.

Description Adarsh Patel 2016-09-04 00:14:51 EDT
Created attachment 2565 [details]
At line number 1327: m_80211mode (1) changed to  m_80211mode (3) and m_80211mode = 3; is added at line number 2374.

steps to reproduce:
-------------------------------------------------
open file and made following changes in vanet-routing-compare.cc:

1. At line number 1327: m_80211mode (1); to     m_80211mode (3);
   Save and run it. 
Outuput:
   with m_80211mode (1) and m_80211mode (3) is same, which is wrong.

2. (i) At line number 1327: m_80211mode (1); to     m_80211mode (3) i.e. keep the change as suggested in 1. 
(ii) At line number 2374 add following :
          m_80211mode = 1;

   It will look like:
   ------------------
      m_traceFile = "";
      m_logFile = "";
      m_mobility = 2;
      m_80211mode = 3;
      if (m_nNodes == 156)
        {
       ---
       ---
    ------------------
   save and run it

Output:
  -------------------------------------------------
  I am in EnableForWave()
  I am in EnableForWave()
  I am in EnableForWave()
  I am in EnableForWave()
  I am in EnableForWave()
  Routing Setup for AODV
  At t=0s BSM_PDR1=0 BSM_PDR1=0 BSM_PDR3=0 BSM_PDR4=0 BSM_PDR5=0 BSM_PDR6=0...

Which is again wrong.
Comment 1 Adarsh Patel 2016-09-08 05:58:19 EDT

*** This bug has been marked as a duplicate of bug 2341 ***
Comment 2 Adarsh Patel 2016-09-08 06:00:12 EDT

*** This bug has been marked as a duplicate of bug 2314 ***