This commit is contained in:
Mathieu Lacage committed 2008-03-24 13:33:56 -07:00
commit 5b5e8e8fc6
9 files changed
+502

No files matched your search

+15
View File
@@ -341,6 +341,21 @@ public:
virtual uint32_t FindInterfaceForAddr (Ipv4Address addr,
Ipv4Mask mask) const = 0;
/**
* \brief Find and return the interface ID of the interface that has been
* associated with the specified (masked) NetDevice
* \param nd The net device of the interface of interest.
* \returns The index of the ipv4 interface associated with the given net
* device or -1 if not found.
*
* Each IP interface is associated with a net device. It is often
* useful to search the list of interfaces for one that corresponds to
* a known net device. This call takes an smart pointer to a net device
* and returns the interface index of the first interface that matches the
* net device.
*/
virtual int32_t FindInterfaceForDevice(Ptr<NetDevice> nd) const = 0;
/**
* \param i index of ipv4 interface
* \returns the NetDevice associated with the ipv4 interface index