Bug 2489 - vanet-routing-compare.cc example is not generating correct output for WAVE (i.e. mode 3 in .cc file)
vanet-routing-compare.cc example is not generating correct output for WAVE (i...
Status: CLOSED DUPLICATE of bug 2314
Product: ns-3
Classification: Unclassified
Component: wave module
ns-3.23
Other Linux
: P5 major
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-09-04 00:14 EDT by Adarsh Patel
Modified: 2016-09-23 07:57 EDT (History)
1 user (show)

See Also:


Attachments
At line number 1327: m_80211mode (1) changed to m_80211mode (3) and m_80211mode = 3; is added at line number 2374. (75.39 KB, text/x-c++src)
2016-09-04 00:14 EDT, Adarsh Patel
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***