aodv: (fixes #2530) rename function SetBalckListTimeout to SetBlackListTimeout

This commit is contained in:
Robert Ammon
2016-11-04 17:32:35 +01:00
parent 7e17a38592
commit 8956f0e1e8
3 changed files with 3 additions and 3 deletions

View File

@@ -429,7 +429,7 @@ RoutingTable::MarkLinkAsUnidirectional (Ipv4Address neighbor, Time blacklistTime
return false;
}
i->second.SetUnidirectional (true);
i->second.SetBalcklistTimeout (blacklistTimeout);
i->second.SetBlacklistTimeout (blacklistTimeout);
i->second.SetRreqCnt (0);
NS_LOG_LOGIC ("Set link to " << neighbor << " to unidirectional");
return true;

View File

@@ -127,7 +127,7 @@ public:
void IncrementRreqCnt () { m_reqCount++; }
void SetUnidirectional (bool u) { m_blackListState = u; }
bool IsUnidirectional () const { return m_blackListState; }
void SetBalcklistTimeout (Time t) { m_blackListTimeout = t; }
void SetBlacklistTimeout (Time t) { m_blackListTimeout = t; }
Time GetBlacklistTimeout () const { return m_blackListTimeout; }
/// RREP_ACK timer
Timer m_ackTimer;

View File

@@ -430,7 +430,7 @@ struct AodvRtableEntryTest : public TestCase
NS_TEST_EXPECT_MSG_EQ (rt.GetNextHop (), Ipv4Address ("1.1.1.1"), "trivial");
rt.SetUnidirectional (true);
NS_TEST_EXPECT_MSG_EQ (rt.IsUnidirectional (), true, "trivial");
rt.SetBalcklistTimeout (Seconds (7));
rt.SetBlacklistTimeout (Seconds (7));
NS_TEST_EXPECT_MSG_EQ (rt.GetBlacklistTimeout (), Seconds (7), "trivial");
rt.SetRreqCnt (2);
NS_TEST_EXPECT_MSG_EQ (rt.GetRreqCnt (), 2, "trivial");