std::string enqueue_path= "/NodeList/*/DeviceList/*/$ns3::WifiNetDevice/*/$ns3::OcbWifiMac/*/Queue/Enqueue";
void EnqueueTrace(std::string context, Ptr<const WifiMacQueueItem> item)
{
Time entry_time = Simulator::Now();
std::cout<<"Packet entered queue at"<<entry_time<<std::endl;
}
Config::Set ("/NodeList/*/DeviceList/*/$ns3::WifiNetDevice/Mac/$ns3::RegularWifiMac/$ns3::OcbWifiMac/*/Queue/MaxQueueSize", StringValue ("1p"));
Ptr<WifiNetDevice> dev = DynamicCast <WifiNetDevice> (c.Get(0)->GetDevice(0));
Ptr<OcbWifiMac> mac = DynamicCast<OcbWifiMac> (dev->GetMac());
PointerValue val;
mac->GetAttribute("BE_Txop", val);
Ptr<Txop> txop = DynamicCast<Txop>(val.GetObject());
Ptr<WifiMacQueue> queue = txop->GetWifiMacQueue();
std::cout << "QueueMaxSize=" << queue->GetMaxQueueSize() << "\tMaxSize: " << queue->GetMaxSize()
<< " CurrentSize:" << queue->GetNPackets() <<std::endl;
Ptr<WifiNetDevice> dev = DynamicCast <WifiNetDevice> (socket->GetNode()->GetDevice(0));
//Should add UdpHeader, and Ipv4Header if you want to properly send the packet.
dev->Send (p , Mac48Address::GetBroadcast(), 0x0800); //0x0800 is IPv4, 0x88dc is WSMP
msg="Incompatible types. (feed to "c++filt -t" if needed)
got=CallbackImpl<void,ns3::Ptr<ns3::Packet const>>
expected=CallbackImpl<void,ns3::Ptr<ns3::Packet const>,ns3::WifiPhyRxfailureReason>", file=./ns3/callback.h, line=1449
file=./ns3/traced-callback.h, line=268
terminate called without an active exception
Command ['/home/winser/ns-allinone-3.30/ns-3.30/build/scratch/verify_oldest_drop'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/-yaX3tS0gbw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/c1e59b15-3c05-459a-a103-e24dbbf66f63%40googlegroups.com.