RANN test cleanup

This commit is contained in:
Pavel Boyko
2009-03-31 14:55:03 +04:00
parent 28cda227f2
commit e2ecae602b
2 changed files with 8 additions and 3 deletions

View File

@@ -163,7 +163,12 @@ IeRann::GetInformationSize () const
void
IeRann::PrintInformation (std::ostream &os) const
{
// TODO
os << " flags = " << (int)m_flags << "\n";
os << " hop count = " << (int)m_hopcount << "\n";
os << " TTL = " << (int)m_ttl << "\n";
os << " originator address = " << m_originatorAddress<< "\n";
os << " dst seq. number = " << m_destSeqNumber << "\n";
os << " metric = " << m_metric << "\n";
}
bool
@@ -183,7 +188,7 @@ operator== (const IeRann & a, const IeRann & b)
/// Built-in self test for IeRann
struct IeRannBist : public Test
{
IeRannBist () : Test ("Mesh/802.11s/IeRann") {}
IeRannBist () : Test ("Mesh/802.11s/IE/RANN") {}
virtual bool RunTests();
};

View File

@@ -60,7 +60,7 @@ uint32_t WifiInformationElement::Deserialize (Buffer::Iterator i)
void WifiInformationElement::Print (std::ostream &os) const
{
os << "<information_element id=" << ElementId () << ">\n";
os << "\n<information_element id=" << ElementId () << ">\n";
PrintInformation (os);
os << "</information_element>\n";
}