[Ns-bugs] [Bug 162] Calling Object::AggregateObject twice with the same Object type silently succeeds

bugzilla-daemon@nsnam-www.ece.gatech.edu bugzilla-daemon at nsnam-www.ece.gatech.edu
Thu Apr 10 10:40:22 PDT 2008


http://www.nsnam.org/bugzilla/show_bug.cgi?id=162





------- Comment #19 from craigdo at ee.washington.edu  2008-04-10 13:40 -------
Okay, I get to eat my own dogfood.  The problem in the csma code follows,

  NodeContainer c;
  c.Create (3);
  NodeContainer c0 = NodeContainer (c.Get (0), c.Get (1));
  NodeContainer c1 = NodeContainer (c.Get (0), c.Get (2));
  ...
  InternetStackHelper internet;
  internet.Install (c0);
  internet.Install (c1);

The zeroeth node created in container "c" gets internet.Install()ed twice. 
Tom's check detects for duplication of the stack itself, but misses the packet
socket factory aggregation in the helper itself.

I'll start fixing all of this if we agree that the "assert and fix" approach
advocated by Mathieu and (sigh)me is the way to go.


-- 
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Ns-bugs mailing list