Bug 776

Summary: 'sinkNode' hard-coded to node-0 in examples/wireless/wifi-simple-adhoc-grid.cc
Product: ns-3 Reporter: Lalith Suresh <suresh.lalith>
Component: examplesAssignee: ns-bugs <ns-bugs>
Status: RESOLVED FIXED    
Severity: trivial CC: tomh
Priority: P5    
Version: ns-3-dev   
Hardware: All   
OS: All   
Attachments: Changes 'c.Get(0)' to 'c.Get(sinkNode)' in line 208 of wifi-simple-adhoc-grid.cc

Description Lalith Suresh 2009-12-14 13:13:50 UTC
Created attachment 699 [details]
Changes 'c.Get(0)' to 'c.Get(sinkNode)' in line 208 of wifi-simple-adhoc-grid.cc

A trivial issue. The receiver socket in examples/wireless/wifi-simple-adhoc-grid.cc is created for node-0 (using Socket::CreateSocket(c.Get(0), tid) ) and hence, the simulation won't receive a packet if we change sinkNode to anything other than 0 (from the commandline or the script itself). Attached below is the patch to fix the same.
Comment 1 Tom Henderson 2009-12-14 13:43:40 UTC
Changeset 4ad1072a8791
Thanks!
Comment 2 Lalith Suresh 2009-12-14 22:33:36 UTC
Welcome. :)