Bug 749

Summary: EmuNetDevice: "Received packet with erroneous context"
Product: ns-3 Reporter: Gustavo J. A. M. Carneiro <gjcarneiro>
Component: devicesAssignee: ns-bugs <ns-bugs>
Status: RESOLVED FIXED    
Severity: major CC: craigdo
Priority: P5    
Version: ns-3.6   
Hardware: All   
OS: All   
Attachments: quick-and-dirty patch

Description Gustavo J. A. M. Carneiro 2009-11-24 17:46:15 UTC
Did someone accidentally break EmuNetDevice when simulator system IDs (or whatever they're called) were introduced?  I see this bug in ns-3-dev, but I got a report from people working on NS-3.6, so it must be an old bug.

root@dark-tower:/home/gjc/projects/ns/ns-3-allinone/ns-3-dev# NS_LOG=PingEmulationExample ./build/debug/examples/emulation/emu-ping --deviceName=wlan0
PingEmulationExample:main(): Ping Emulation Example
PingEmulationExample:main(): Create Node
0s -1 PingEmulationExample:main(): Create Device
0s -1 PingEmulationExample:main(): Add Internet Stack
0s -1 PingEmulationExample:main(): Create IPv4 Interface
0s -1 PingEmulationExample:main(): Create V4Ping Appliation
0s -1 PingEmulationExample:main(): Run Emulation.
Received packet with erroneous context ; make sure the channels in use are correctly updating events context when transfering events from one node to another.
Segmentation fault
Comment 1 Gustavo J. A. M. Carneiro 2009-11-24 18:01:46 UTC
Created attachment 675 [details]
quick-and-dirty patch