LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to add Mac/csma to ns2? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-add-mac-csma-to-ns2-4175513683/)

lintreesa 08-06-2014 02:02 AM

How to add Mac/csma to ns2?
 
I am working with ns-allinone-2.35 on ubuntu 10.10.
I want to run one script using Mac/csma. The mac-csma.o file is generated I. tried to add Mac/mac-csma.o to Makefile.in , ran ./configure and make. I got the following error

mac/mac-csma.cc: In member function ‘virtual void MacCsma::send(Packet*)’:
mac/mac-csma.cc:107: error: ‘class Channel’ has no member named ‘txstop’
mac/mac-csma.cc:135: error: ‘class Channel’ has no member named ‘contention’
mac/mac-csma.cc: In member function ‘virtual void MacCsma::backoff(Handler*, Packet*, double)’:
mac/mac-csma.cc:148: error: ‘class Channel’ has no member named ‘txstop’
mac/mac-csma.cc: In member function ‘virtual void MacCsma::endofContention(Packet*)’:
mac/mac-csma.cc:163: error: ‘class Channel’ has no member named ‘send’
mac/mac-csma.cc: In member function ‘virtual void MacCsmaCd::endofContention(Packet*)’:
mac/mac-csma.cc:173: error: ‘class Channel’ has no member named ‘collision’
mac/mac-csma.cc:174: error: ‘class Channel’ has no member named ‘jam’
mac/mac-csma.cc: In member function ‘virtual void MacCsmaCa::send(Packet*)’:
mac/mac-csma.cc:185: error: ‘class Channel’ has no member named ‘txstop’
mac/mac-csma.cc:191: error: ‘class Channel’ has no member named ‘contention’
make: *** [mac/mac-csma.o] Error 1
Ns make failed!

Can anyone pls help me.

Thanks in advance..


All times are GMT -5. The time now is 07:04 AM.