I was trying to compile mac/mac-csma.cc and mac/mac-csma.h by making
relevant changes in the makefile. But it seems to give some problems.
After making changes, when I do make depend and Make, it gives the
following errors:

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

When I looked through channel.h, I found that all those variables have
been commented.
Just want to know why those variables have been commented?

I am using NS2.30 on FC4 machine

Thanks
Tarun Bansal

Reply via email to