src/internet-node/ascii-trace.cc
changeset 734 039fb338b6e9
parent 733 fb1882e7d785
child 903 9ebdbfc46d48
equal deleted inserted replaced
733:fb1882e7d785 734:039fb338b6e9
   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::GetNode (nodeIndex)->GetId () << " ";
   113   m_os << "node=" << NodeList::GetNode (nodeIndex)->GetId () << " ";
   114   Ipv4::InterfaceIndex interfaceIndex;
   114   Ipv4L3Protocol::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);
   119   m_os << std::endl;
   119   m_os << std::endl;
   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::GetNode (nodeIndex)->GetId () << " ";
   127   m_os << "node=" << NodeList::GetNode (nodeIndex)->GetId () << " ";
   128   Ipv4::InterfaceIndex interfaceIndex;
   128   Ipv4L3Protocol::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);
   133   m_os << std::endl;  
   133   m_os << std::endl;