OLSR: fix bad usage of uninitialized m_routingAgentAddr. Spotted by chei_med--yahoo-fr on ns-3-users thread 'm_routingAgentAddr and OLSR'

This commit is contained in:
Gustavo J. A. M. Carneiro
2011-02-09 16:11:27 +00:00
parent 0e1c0ca995
commit 7d43e3b242
2 changed files with 1 additions and 4 deletions

View File

@@ -2101,7 +2101,7 @@ RoutingProtocol::PopulateTwoHopNeighborSet (const olsr::MessageHeader &msg,
// If the main address of the 2-hop neighbor address == main address
// of the receiving node, silently discard the 2-hop
// neighbor address.
if (nb2hop_addr == m_routingAgentAddr)
if (nb2hop_addr == m_mainAddress)
{
NS_LOG_LOGIC ("Ignoring 2-hop neighbor (it is the node itself)");
continue;

View File

@@ -131,9 +131,6 @@ private:
Ptr<Ipv4StaticRouting> m_hnaRoutingTable;
EventGarbageCollector m_events;
/// Address of the routing agent.
Ipv4Address m_routingAgentAddr;
/// Packets sequence number counter.
uint16_t m_packetSequenceNumber;