first take a look the code attached...
Sample from trace file..
r 90.1358 /NodeList/10/DeviceList/0/$ns3::WifiNetDevice/Phy/State/RxOk ns3::WifiMacHeader (DATA ToDS=0, FromDS=0, MoreFrag=0, Retry=0, MoreData=0 Duration/ID=0usDA=ff:ff:ff:ff:ff:ff, SA=00:00:00:00:00:10, BSSID=00:00:00:00:00:10, FragNumber=0, SeqNumber=629) ns3::LlcSnapHeader (type 0x800) ns3::Ipv4Header (tos 0x0 DSCP Default ECN Not-ECT ttl 1 id 612 protocol 17 offset (bytes) 0 flags [none] length: 52 10.1.1.16 > 10.1.1.255) ns3::UdpHeader (length: 32 269 > 269) ns3::dsdv::DsdvHeader (DestinationIpv4: 10.1.1.16 Hopcount: 1 SequenceNumber: 14) ns3::dsdv::DsdvHeader (DestinationIpv4: 10.1.1.27 Hopcount: 3 SequenceNumber: 14) ns3::WifiMacTrailer ()
my questions:
1) Should i be accessing the ns3::WifiMacHeader for reordering the packets(while they are stored at the buffer of Jellyfish node)..
if yes then How???
2) how to access the buffer containing packets of badnodes only (which class method) should i use and how??