[Ns-bugs] [Bug 899] New: EmuNetDevice::SetPromiscReceiveCallback not implemented
code@nsnam.ece.gatech.edu
code at nsnam.ece.gatech.edu
Wed Apr 28 05:19:48 PDT 2010
http://www.nsnam.org/bugzilla/show_bug.cgi?id=899
Summary: EmuNetDevice::SetPromiscReceiveCallback not
implemented
Product: ns-3
Version: ns-3-dev
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P5
Component: devices
AssignedTo: ns-bugs at isi.edu
ReportedBy: gjcarneiro at gmail.com
Estimated Hours: 0.0
EmuNetDevice::SetPromiscReceiveCallback is not implemented:
void
EmuNetDevice::SetPromiscReceiveCallback (PromiscReceiveCallback cb)
{
NS_FATAL_ERROR ("EmuNetDevice::SetPromiscReceiveCallback(): Not
implemented");
}
The correct implementation is trivial, as ForwardUp already takes care to use
m_promiscRxCallback if set. Change to:
void
EmuNetDevice::SetPromiscReceiveCallback (PromiscReceiveCallback cb)
{
m_promiscRxCallback = cb;
}
--
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Ns-bugs
mailing list