From 91d49b20c42e579faa3b950ba1dd7ce45f432ec8 Mon Sep 17 00:00:00 2001 From: Lalith Suresh Date: Sun, 13 Jun 2010 13:40:12 +0530 Subject: [PATCH] hnaEntries Create() moved into if block for clarity --- examples/routing/olsr-hna.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/examples/routing/olsr-hna.cc b/examples/routing/olsr-hna.cc index 5d0f5721d..12588e73d 100644 --- a/examples/routing/olsr-hna.cc +++ b/examples/routing/olsr-hna.cc @@ -14,6 +14,8 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * + * Authors: Lalith Suresh + * */ // @@ -228,12 +230,12 @@ int main (int argc, char *argv[]) } } - // Create a special Ipv4StaticRouting instance for RoutingTableAssociation - // Even the Ipv4StaticRouting instance added to list may be used - Ptr hnaEntries = Create (); - if (assocMethod1) { + // Create a special Ipv4StaticRouting instance for RoutingTableAssociation + // Even the Ipv4StaticRouting instance added to list may be used + Ptr hnaEntries = Create (); + // Add the required routes into the Ipv4StaticRouting Protocol instance // and have the node generate HNA messages for all these routes // which are associated with non-OLSR interfaces specified above.