src/internet-node/ascii-trace.cc
changeset 728 95c426b1cb60
parent 607 1b7abeccfcda
child 729 b5e744285e92
equal deleted inserted replaced
727:3bcec84f9f54 728:95c426b1cb60
   108       break;
   108       break;
   109     }
   109     }
   110   m_os << Simulator::Now ().GetSeconds () << " ";
   110   m_os << Simulator::Now ().GetSeconds () << " ";
   111   NodeList::NodeIndex nodeIndex;
   111   NodeList::NodeIndex nodeIndex;
   112   context.Get (nodeIndex);
   112   context.Get (nodeIndex);
   113   m_os << "node=" << NodeList::GetINode (nodeIndex)->GetId () << " ";
   113   m_os << "node=" << NodeList::GetNode (nodeIndex)->GetId () << " ";
   114   Ipv4::InterfaceIndex interfaceIndex;
   114   Ipv4::InterfaceIndex interfaceIndex;
   115   context.Get (interfaceIndex);
   115   context.Get (interfaceIndex);
   116   m_os << "interface=" << interfaceIndex << " ";
   116   m_os << "interface=" << interfaceIndex << " ";
   117   m_os << "pkt-uid=" << packet.GetUid () << " ";
   117   m_os << "pkt-uid=" << packet.GetUid () << " ";
   118   PrintType (packet);
   118   PrintType (packet);
   122 AsciiTrace::LogDevRx (TraceContext const &context, Packet &p)
   122 AsciiTrace::LogDevRx (TraceContext const &context, Packet &p)
   123 {
   123 {
   124   m_os << "r " << Simulator::Now ().GetSeconds () << " ";
   124   m_os << "r " << Simulator::Now ().GetSeconds () << " ";
   125   NodeList::NodeIndex nodeIndex;
   125   NodeList::NodeIndex nodeIndex;
   126   context.Get (nodeIndex);
   126   context.Get (nodeIndex);
   127   m_os << "node=" << NodeList::GetINode (nodeIndex)->GetId () << " ";
   127   m_os << "node=" << NodeList::GetNode (nodeIndex)->GetId () << " ";
   128   Ipv4::InterfaceIndex interfaceIndex;
   128   Ipv4::InterfaceIndex interfaceIndex;
   129   context.Get (interfaceIndex);
   129   context.Get (interfaceIndex);
   130   m_os << "interface=" << interfaceIndex << " ";
   130   m_os << "interface=" << interfaceIndex << " ";
   131   m_os << "pkt-uid=" << p.GetUid () << " ";
   131   m_os << "pkt-uid=" << p.GetUid () << " ";
   132   PrintType (p);
   132   PrintType (p);