src/node/node.cc
changeset 447 180117abfb04
parent 381 83b52d112c99
child 448 a0f005b96cfc
equal deleted inserted replaced
446:ceecc7397053 447:180117abfb04
    64 
    64 
    65 void   
    65 void   
    66 Node::SetSystemId(uint32_t s )
    66 Node::SetSystemId(uint32_t s )
    67 {
    67 {
    68   m_sid = s;
    68   m_sid = s;
       
    69 }
       
    70 
       
    71 uint32_t 
       
    72 Node::AddDevice (NetDevice *device)
       
    73 {
       
    74   uint32_t index = m_devices.size ();
       
    75   m_devices.push_back (device);
       
    76   DoAddDevice (device);
       
    77   return index;
       
    78 }
       
    79 NetDevice *
       
    80 Node::GetDevice (uint32_t index) const
       
    81 {
       
    82   return m_devices[index];
       
    83 }
       
    84 uint32_t 
       
    85 Node::GetNDevices (void) const
       
    86 {
       
    87   return m_devices.size ();
    69 }
    88 }
    70 
    89 
    71 // Node stack creation and management routines.
    90 // Node stack creation and management routines.
    72 Node* Node::Create()
    91 Node* Node::Create()
    73 {
    92 {