|
Bugzilla – Full Text Bug Listing |
| Summary: | 'sinkNode' hard-coded to node-0 in examples/wireless/wifi-simple-adhoc-grid.cc | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Lalith Suresh <suresh.lalith> |
| Component: | examples | Assignee: | 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 | ||
Changeset 4ad1072a8791 Thanks! Welcome. :) |
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.