Bug 776 - 'sinkNode' hard-coded to node-0 in examples/wireless/wifi-simple-adhoc-grid.cc
'sinkNode' hard-coded to node-0 in examples/wireless/wifi-simple-adhoc-grid.cc
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: examples
ns-3-dev
All All
: P5 trivial
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-12-14 13:13 UTC by Lalith Suresh
Modified: 2009-12-14 22:33 UTC (History)
1 user (show)

See Also:


Attachments
Changes 'c.Get(0)' to 'c.Get(sinkNode)' in line 208 of wifi-simple-adhoc-grid.cc (579 bytes, patch)
2009-12-14 13:13 UTC, Lalith Suresh
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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. :)