2017-12-03 11 views
0

ns2.35のcmu-trace.ccファイルを編集してAPITを追加した後、多くのエラーが発生しました。その中には以下のものがあります。 私を助けてください。前もって感謝します。NS2.35 UbuntuにAPITを追加する

trace/cmu-trace.cc: In member function ‘void CMUTrace::format_apit(Packet*, int)’: 
trace/cmu-trace.cc:1077:45: error: ‘HDR_APIT’ was not declared in this scope 
      struct hdr_apit *wd = HDR_APIT(p); 
              ^
trace/cmu-trace.cc:1078:60: error: ‘HDR_APIT_BEACON’ was not declared in this scope 
      struct hdr_apit_beacon *bcn = HDR_APIT_BEACON(p); 
                  ^
trace/cmu-trace.cc:1079:57: error: ‘HDR_APIT_RSSI’ was not declared in this scope 
      struct hdr_apit_rssi *rssi = HDR_APIT_RSSI(p); 
                 ^
..... 

答えて

1

3 "行方不明" の定義はapit_packet.hで行われ、ライン41 ... 43

#define HDR_APIT(p)    ((struct hdr_apit*)hdr_apit::access(p)) 
#define HDR_APIT_BEACON(p)  ((struct hdr_apit_beacon*)hdr_apit::access(p)) 
#define HDR_APIT_RSSI(p)  ((struct hdr_apit_rssi*)hdr_apit::access(p)) 

...だからあなたがしなければならないすべては、cmu-trace.ccにライン(66)を追加することです:

#include <apit/apit_packet.h> 
関連する問題