[Ns-developers] ns-3.4 action plan

Gustavo Carneiro gjcarneiro at gmail.com
Tue Feb 3 10:02:15 PST 2009


2009/2/3 <craigdo at ee.washington.edu>

>
> > What would be the new API equivalent to netdevice->GetName
> > ()?  Can someone
> > enlighten me?  I think _that_ should  be the deciding factor.
>
> There are two API depending on what exactly you want:
>
>  Names::FindShortName (netDevice)
>
> would return something like "eth0" if you only need to know the name of the
> device itself.


This is the one that is equivalent to netdevice->GetName ().


>
>
>  Names::FindFullName (netDevice)
>
> would return something like "/Names/access-point/ath0" if you need it for,
> say, a config path.
>

Sounds simple enough.  No objections from my part.

I would suggest keeping the old NetDevice::GetName method, mapping to
Names::FindShortName, with a deprecation warning.  But, since I am stuck
with NS-3.2 for the foreseeable future, this is only a gentle suggestion; I
won't make a fuss about it :-)

Thanks,
-- 
Gustavo J. A. M. Carneiro
INESC Porto, Telecommunications and Multimedia Unit
"The universe is always one step beyond logic." -- Frank Herbert


More information about the Ns-developers mailing list