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.