From e51bb180d46cc9ba4fa12d3222fac38c138dc482 Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Wed, 9 Jan 2008 22:09:21 -0800 Subject: [PATCH] Fix bug 125 (make helper function non-virtual) --- src/node/ipv4.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/node/ipv4.h b/src/node/ipv4.h index a0ece2823..047c45e43 100644 --- a/src/node/ipv4.h +++ b/src/node/ipv4.h @@ -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")); };