|
Bugzilla – Full Text Bug Listing |
| Summary: | EmuNetDevice::SetPromiscReceiveCallback not implemented | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Gustavo J. A. M. Carneiro <gjcarneiro> |
| Component: | devices | Assignee: | ns-bugs <ns-bugs> |
| Status: | RESOLVED FIXED | ||
| Severity: | major | CC: | jpelkey |
| Priority: | P5 | ||
| Version: | ns-3-dev | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | the patch | ||
Created attachment 851 [details]
the patch
changeset ba09ab600218 |
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; }