View | Details | Raw Unified | Return to bug 10
Collapse All | Expand All

(-)a/src/node/net-device.cc (-1 / +6 lines)
 Lines 23-28    Link Here 
23
#include "ns3/assert.h"
23
#include "ns3/assert.h"
24
24
25
#include "net-device.h"
25
#include "net-device.h"
26
#include "net-device-list.h"
26
#include "l3-demux.h"
27
#include "l3-demux.h"
27
#include "l3-protocol.h"
28
#include "l3-protocol.h"
28
#include "llc-snap-header.h"
29
#include "llc-snap-header.h"
 Lines 40-46   NetDevice::NetDevice(Node *node, const M Link Here 
40
  m_isBroadcast (false), 
41
  m_isBroadcast (false), 
41
  m_isMulticast (false), 
42
  m_isMulticast (false), 
42
  m_isPointToPoint (false)
43
  m_isPointToPoint (false)
43
{}
44
{
45
  NetDeviceList *netDevList = node->GetNetDevices ();
46
  if (netDevList)
47
    netDevList->Add (this);
48
}
44
49
45
MacAddress 
50
MacAddress 
46
NetDevice::GetAddress (void) const
51
NetDevice::GetAddress (void) const
(-)a/src/node/net-device.cc (-1 / +1 lines)
 Lines 42-48   NetDevice::NetDevice(Node *node, const M Link Here 
42
  m_isMulticast (false), 
42
  m_isMulticast (false), 
43
  m_isPointToPoint (false)
43
  m_isPointToPoint (false)
44
{
44
{
45
  NetDeviceList *netDevList = node->GetNetDevices ();
45
  NetDeviceList *netDevList = node->GetNetDeviceList ();
46
  if (netDevList)
46
  if (netDevList)
47
    netDevList->Add (this);
47
    netDevList->Add (this);
48
}
48
}

Return to bug 10