src/internet-node/arp-l3-protocol.cc
changeset 2498 e01570293b98
parent 2257 71a58e70c671
child 2592 3ebf97150166
--- a/src/internet-node/arp-l3-protocol.cc	Wed Feb 27 19:36:03 2008 +0100
+++ b/src/internet-node/arp-l3-protocol.cc	Wed Feb 27 19:44:22 2008 +0100
@@ -41,12 +41,17 @@
 ArpL3Protocol::GetTypeId (void)
 {
   static TypeId tid = TypeId ("ArpL3Protocol")
-    .SetParent<Object> ();
+    .SetParent<Object> ()
+    .AddAttribute ("Node", "The node to which this protocol is associated.",
+                   TypeId::ATTR_GET | TypeId::ATTR_CONSTRUCT,
+                   Ptr<Node> (0),
+                   MakePtrAccessor (&ArpL3Protocol::m_node),
+                   MakePtrChecker<Node> ())
+    ;
   return tid;
 }
 
-ArpL3Protocol::ArpL3Protocol (Ptr<Node> node)
-  : m_node (node)
+ArpL3Protocol::ArpL3Protocol ()
 {
   NS_LOG_FUNCTION;
 }