[Ns-bugs] [Bug 125] Ipv4::GetIfIndexByAddress is virtual and has an argument with a default value

bugzilla-daemon@nsnam-www.ece.gatech.edu bugzilla-daemon at nsnam-www.ece.gatech.edu
Tue Jan 8 07:07:10 PST 2008


http://www.nsnam.org/bugzilla/show_bug.cgi?id=125





------- Comment #2 from tomh at tomh.org  2008-01-08 10:07 -------
Hmm.. how about just making this non-virtual?

diff -r 4ba90810ae30 src/node/ipv4.h
--- a/src/node/ipv4.h   Tue Jan 08 14:06:49 2008 +0000
+++ b/src/node/ipv4.h   Tue Jan 08 07:04:17 2008 -0800
@@ -451,13 +451,15 @@ public:

   /**
    * \brief Convenience function to return the ifIndex corresponding
-   * to the Ipv4Address provided
+   * to the Ipv4Address provided.  If an Ipv4Mask is provided also,
+   * then the address is masked, which allows one to determine the 
+   * interface corresponding to a network prefix.
    *
    * \param addr Ipv4Address
    * \param mask corresponding Ipv4Mask
    * \returns ifIndex corresponding to a/amask
    */
-  virtual uint32_t GetIfIndexByAddress (Ipv4Address addr, 
+  uint32_t GetIfIndexByAddress (Ipv4Address addr, 
     Ipv4Mask mask = Ipv4Mask("255.255.255.255"));
 };



-- 
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Ns-bugs mailing list