[Ns-bugs] [Bug 550] TapBridge::GetChannel is not implemented
code@nsnam.ece.gatech.edu
code at nsnam.ece.gatech.edu
Thu Apr 16 06:10:12 PDT 2009
http://www.nsnam.org/bugzilla/show_bug.cgi?id=550
--- Comment #2 from Mathieu Lacage <mathieu.lacage at sophia.inria.fr> 2009-04-16 09:10:12 EDT ---
(In reply to comment #1)
> I do not understand this suggestion. It seems to be doing exactly what
> NetDevice::GetChannel says it will do.
Are you allowed to return 0 from this method ? Yes, but only _before_ the
device is connected to a channel. It could be argued that not being connected
to a channel is allowed only as a transient state during topology setup which
means that you should not return 0 _during_ simulation, because, honestly, an
unconnected device should not exist ever once you are past Simulator::Run.
Maybe what really makes sense here is to return 0 initially and a channel
pointer once the device has been successfully associated to its host device.
Does any of this matter ? I don't know: I merely pointed out something which
looked like a good idea to me. Feel free to ignore it.
--
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Ns-bugs
mailing list