在ns2.35中编辑cmu-trace.cc文件以添加APIT之后,创建了许多错误。其中一些如下。
我尝试了Adding APIT in NS2.35 Ubuntu 16.04提供的解决方案,但是找不到apit_packet.h文件。
请帮帮我。预先谢谢你。
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);
^
...