diff --git a/src/common/packet.cc b/src/common/packet.cc index c3886b936..5f12f4328 100644 --- a/src/common/packet.cc +++ b/src/common/packet.cc @@ -308,14 +308,14 @@ Packet::Print (std::ostream &os) const Chunk *chunk = dynamic_cast (instance); NS_ASSERT (chunk != 0); chunk->Deserialize (item.current); - for (uint32_t j = 0; j < item.tid.GetAttributeListN (); j++) + for (uint32_t j = 0; j < item.tid.GetAttributeN (); j++) { std::string attrName = item.tid.GetAttributeName (j); std::string value; bool ok = chunk->GetAttribute (attrName, value); NS_ASSERT (ok); os << attrName << "=" << value; - if ((j + 1) < item.tid.GetAttributeListN ()) + if ((j + 1) < item.tid.GetAttributeN ()) { os << ","; } diff --git a/src/core/attribute-list.cc b/src/core/attribute-list.cc index 003c6371c..50b96b4ab 100644 --- a/src/core/attribute-list.cc +++ b/src/core/attribute-list.cc @@ -171,7 +171,7 @@ AttributeList::LookupAttributeFullNameByChecker (Ptr che for (uint32_t i = 0; i < TypeId::GetRegisteredN (); i++) { TypeId tid = TypeId::GetRegistered (i); - for (uint32_t j = 0; j < tid.GetAttributeListN (); j++) + for (uint32_t j = 0; j < tid.GetAttributeN (); j++) { if (checker == tid.GetAttributeChecker (j)) { diff --git a/src/core/command-line.cc b/src/core/command-line.cc index 1cc05c342..eb2852623 100644 --- a/src/core/command-line.cc +++ b/src/core/command-line.cc @@ -124,7 +124,7 @@ CommandLine::PrintAttributes (std::string type) const { NS_FATAL_ERROR ("Unknown type="< checker = tid.GetAttributeChecker (i); diff --git a/src/core/object-base.cc b/src/core/object-base.cc index 5eec563ea..07518aaa4 100644 --- a/src/core/object-base.cc +++ b/src/core/object-base.cc @@ -36,8 +36,8 @@ ObjectBase::ConstructSelf (const AttributeList &attributes) TypeId tid = GetInstanceTypeId (); do { // loop over all attributes in object type - NS_LOG_DEBUG ("construct tid="<"<" << tid.GetAttributeName (j) << ": " << tid.GetAttributeHelp (j) << std::endl; @@ -52,7 +52,7 @@ int main (int argc, char *argv[]) } std::cout << "\\fn static TypeId " << tid.GetName () << "::GetTypeId (void)" << std::endl; std::cout << "\\brief This method returns the TypeId associated to \\ref " << tid.GetName () << std::endl << std::endl; - if (tid.GetAttributeListN () == 0) + if (tid.GetAttributeN () == 0) { std::cout << "No Attributes defined for this type." << std::endl; } @@ -65,7 +65,7 @@ int main (int argc, char *argv[]) TypeId tmp = tid.GetParent (); while (tmp.GetParent () != tmp) { - if (tmp.GetAttributeListN () != 0) + if (tmp.GetAttributeN () != 0) { hasAttributesInParent = true; } @@ -77,7 +77,7 @@ int main (int argc, char *argv[]) tmp = tid.GetParent (); while (tmp.GetParent () != tmp) { - if (tmp.GetAttributeListN () != 0) + if (tmp.GetAttributeN () != 0) { std::cout << tmp.GetName () << std::endl; PrintAttributes (tmp, std::cout);