Bugzilla – Bug 776
'sinkNode' hard-coded to node-0 in examples/wireless/wifi-simple-adhoc-grid.cc
Last modified: 2009-12-14 22:33:36 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.
Changeset 4ad1072a8791 Thanks!
Welcome. :)