40 PointToPointNetDevice::GetTypeId (void) |
40 PointToPointNetDevice::GetTypeId (void) |
41 { |
41 { |
42 static TypeId tid = TypeId ("PointToPointNetDevice") |
42 static TypeId tid = TypeId ("PointToPointNetDevice") |
43 .SetParent<NetDevice> () |
43 .SetParent<NetDevice> () |
44 .AddConstructor<PointToPointNetDevice> () |
44 .AddConstructor<PointToPointNetDevice> () |
45 .AddAttribute ("Node", "The node with which this device is associated", |
|
46 TypeId::ATTR_GET | TypeId::ATTR_CONSTRUCT, |
|
47 Ptr<Node> (0), |
|
48 MakePtrAccessor (&PointToPointNetDevice::m_node), |
|
49 MakePtrChecker<Node> ()) |
|
50 .AddAttribute ("Address", "The address of this device.", |
45 .AddAttribute ("Address", "The address of this device.", |
51 Mac48Address ("ff:ff:ff:ff:ff:ff"), |
46 Mac48Address ("ff:ff:ff:ff:ff:ff"), |
52 MakeMac48AddressAccessor (&PointToPointNetDevice::m_address), |
47 MakeMac48AddressAccessor (&PointToPointNetDevice::m_address), |
53 MakeMac48AddressChecker ()) |
48 MakeMac48AddressChecker ()) |
54 .AddAttribute ("DataRate", "The default data rate for point to point links", |
49 .AddAttribute ("DataRate", "The default data rate for point to point links", |