equal
deleted
inserted
replaced
39 |
39 |
40 TypeId |
40 TypeId |
41 ArpL3Protocol::GetTypeId (void) |
41 ArpL3Protocol::GetTypeId (void) |
42 { |
42 { |
43 static TypeId tid = TypeId ("ArpL3Protocol") |
43 static TypeId tid = TypeId ("ArpL3Protocol") |
44 .SetParent<Object> (); |
44 .SetParent<Object> () |
|
45 .AddAttribute ("Node", "The node to which this protocol is associated.", |
|
46 TypeId::ATTR_GET | TypeId::ATTR_CONSTRUCT, |
|
47 Ptr<Node> (0), |
|
48 MakePtrAccessor (&ArpL3Protocol::m_node), |
|
49 MakePtrChecker<Node> ()) |
|
50 ; |
45 return tid; |
51 return tid; |
46 } |
52 } |
47 |
53 |
48 ArpL3Protocol::ArpL3Protocol (Ptr<Node> node) |
54 ArpL3Protocol::ArpL3Protocol () |
49 : m_node (node) |
|
50 { |
55 { |
51 NS_LOG_FUNCTION; |
56 NS_LOG_FUNCTION; |
52 } |
57 } |
53 |
58 |
54 ArpL3Protocol::~ArpL3Protocol () |
59 ArpL3Protocol::~ArpL3Protocol () |