[Ns-developers] ns-3.4 action plan

Mathieu Lacage mathieu.lacage at sophia.inria.fr
Tue Feb 3 08:58:32 PST 2009


On Tue, 2009-02-03 at 07:34 -0800, Tom Henderson wrote:

> The second change is to allow objects to be renamed:
> 
>    Names::Rename ("node0", "access-point");

I fail to see how the above is really much better than:

Names::Set ("access-point", NodeList::Get (0));

The above relies much less on magic naming conventions and thus looks
much more robust to me.

> I think that the above is ready for merge.  I think it would be nice if 
> we could configure the helpers to optionally add names to certain 
> objects (particularly devices), such as a convention that all Csma 
> NetDevices automatically end up with names like "eth0", "eth1". 
> Attached is the start of a patch along these lines.  I think that the 
> auto-naming can be built on top of what Craig already has, in the helper 
> classes, so I do not want to suggest holding the merge of what is 
> already there to work on autonaming-- I am just bringing it up as food 
> for thought.

If you really do this, please, can you add a flag to conditionally
disable globally this automatic naming feature ?

Mathieu



More information about the Ns-developers mailing list