LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-05-2013, 10:57 AM   #1
rose24
LQ Newbie
 
Registered: Oct 2012
Posts: 12

Rep: Reputation: Disabled
Error in ns2.28 when trying to exchange information between two layers


Hi all,

I'm working on IEEE802.11e EDCA in ns2.28 and my cross layer is between the udp class (udp.cc) and the Mac802_11e class (mac-802_11e.cc). I follow all the instructions in this link (http://wmnatupdiliman.blogspot.com/2...16500257750)in order to exchange information between these two layers but I got an error when I include in the udp.h header file the mac-802_11e.h file which is :

In file included from apps/udp.h:27,
from apps/udp.cc:24:
./mac/802_11e/mac-802_11e.h: At global scope:
./mac/802_11e/mac-802_11e.h:120: error: ‘ETHER_ADDR_LEN’ was not declared in this scope
./mac/802_11e/mac-802_11e.h:121: error: ‘ETHER_ADDR_LEN’ was not declared in this scope
./mac/802_11e/mac-802_11e.h:122: error: ‘ETHER_ADDR_LEN’ was not declared in this scope
./mac/802_11e/mac-802_11e.h: In member function ‘u_int32_t EDCA_PHY_MIB::getHdrLen11()’:
./mac/802_11e/mac-802_11e.h:160: error: ‘ETHER_FCS_LEN’ was not declared in this scope
./mac/802_11e/mac-802_11e.h: At global scope:
./mac/802_11e/mac-802_11e.h:209: error: expected class-name before ‘{’ token
./mac/802_11e/mac-802_11e.h:234: error: ‘MacState’ has not been declared
./mac/802_11e/mac-802_11e.h:235: error: ‘MacState’ has not been declared
./mac/802_11e/mac-802_11e.h:390: error: ‘MacState’ does not name a type
./mac/802_11e/mac-802_11e.h:391: error: ‘MacState’ does not name a type
./mac/802_11e/mac-802_11e.h: In member function ‘int Mac802_11e::initialized()’:
./mac/802_11e/mac-802_11e.h:304: error: ‘Mac’ has not been declared
make: *** [apps/udp.o] Error 1


and this error belongs to #include "mac/mac-802_11e.h" line in the udp.h file,
So if someone has an idea about how to fix this error, please help me ? Also when I tried to include the ns2.28 integrated mac layer (mac-802_11.h)in the udp class, I got the same error. I'm stuck in this error from long time.

Thanks for your help in advance.

Last edited by rose24; 02-05-2013 at 12:12 PM.
 
  


Reply

Tags
mac80211, network, ns2 ns-allinone, ns2 ns234


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help error Ns2 vuichoigiaitri Ubuntu 3 09-28-2012 03:48 AM
passing control and data information on separate channels in ns2 humairaafzal73 Linux - Software 0 02-26-2012 08:42 AM
I got an error while running leach package in ns2.. help me to get out of this error. rkgowrishankar Linux - Software 1 02-07-2012 04:51 AM
NS2 Error ajkannan83 Linux - Software 1 02-10-2008 11:33 PM
How many layers of programming are there? SouthernGorilla Linux - Software 7 03-16-2007 07:18 PM


All times are GMT -5. The time now is 04:15 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration