bug 550: NetDevice::GetChannel method need clarification
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Wed Jun 03 09:48:31 2009 +0200 (8 months ago)
changeset 4489b322b179c5f6
parent 4488 1faf35545dfd
child 4490 6aa43c812fec
bug 550: NetDevice::GetChannel method need clarification
src/node/net-device.h
     1.1 --- a/src/node/net-device.h	Tue Jun 02 19:46:01 2009 +0200
     1.2 +++ b/src/node/net-device.h	Wed Jun 03 09:48:31 2009 +0200
     1.3 @@ -91,7 +91,9 @@
     1.4    /**
     1.5     * \return the channel this NetDevice is connected to. The value
     1.6     *         returned can be zero if the NetDevice is not yet connected
     1.7 -   *         to any channel.
     1.8 +   *         to any channel or if the underlying NetDevice has no
     1.9 +   *         concept of a channel. i.e., callers _must_ check for zero
    1.10 +   *         and be ready to handle it.
    1.11     */
    1.12    virtual Ptr<Channel> GetChannel (void) const = 0;
    1.13