[Ns-bugs] [Bug 1049] Issues with OLSR HNA messages sent by multiple gateways

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Thu Feb 3 15:30:32 PST 2011


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


Julien Boite <juboite at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #1031|0                           |1
        is obsolete|                            |




--- Comment #5 from Julien Boite <juboite at gmail.com>  2011-02-03 18:30:32 EDT ---
Created an attachment (id=1032)
 --> (http://www.nsnam.org/bugzilla/attachment.cgi?id=1032)
diff -u olsr-routing-protocol.cc patched_olsr-routing-protocol.cc

This patch replaces the previous one (comment #1).
It solves the bug, allows "SetRoutingTableAssociation()" to be called multiple
times, and includes all necessary verifications around the list of local HNA
associations.
Two methods has been created:
- "RemoveHostNetworkAssociation (Ipv4Address networkAddr, Ipv4Mask netmask)",
with the same visibility (public) than "AddHostNetworkAssociation()", allows to
remove a (networkAddress, netmask) tuple from the list of local HNA
associations
- "UsesNonOlsrOutgoingInterface(const Ipv4RoutingTableEntry &route)", with a
private visibility, performs a test on whether or not the routing table entry
given as a parameter uses a non-olsr outgoing interface. This method exists
because I don't like writing the same piece of code twice! :)

This patch must be applied with the patch published in the next comment. It
simply adds the two new methods declarations in file "olsr-routing-protocol.h".

All seems to work as expected. Do not hesitate to tell me about extended tests
results.

-- 
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Ns-bugs mailing list