src/helper/packet-sink-helper.cc
changeset 2965 4b28e9740e3b
parent 2890 172baa5960ff
child 3125 d2d8a36cfd23
--- a/src/helper/packet-sink-helper.cc	Mon Apr 14 16:19:17 2008 -0700
+++ b/src/helper/packet-sink-helper.cc	Thu Apr 17 13:42:25 2008 -0700
@@ -26,12 +26,12 @@
 PacketSinkHelper::PacketSinkHelper (std::string protocol, Address address)
 {
   m_factory.SetTypeId ("ns3::PacketSink");
-  m_factory.Set ("Protocol", String(protocol));
-  m_factory.Set ("Local", address);
+  m_factory.Set ("Protocol", StringValue (protocol));
+  m_factory.Set ("Local", AddressValue (address));
 }
 
 void 
-PacketSinkHelper::SetAttribute (std::string name, Attribute value)
+PacketSinkHelper::SetAttribute (std::string name, const AttributeValue &value)
 {
   m_factory.Set (name, value);
 }