Align helper API use of Install()

This commit is contained in:
Tom Henderson
2008-04-13 15:46:17 -07:00
parent ed0dcc982b
commit e855838ed1
16 changed files with 74 additions and 57 deletions

View File

@@ -36,11 +36,6 @@ namespace ns3 {
void
AddInternetStack (Ptr<Node> node)
{
// This may be called on a node with a previously added stack
if (node->GetObject<Ipv4> ())
{
return;
}
Ptr<Ipv4L3Protocol> ipv4 = CreateObject<Ipv4L3Protocol> ();
Ptr<ArpL3Protocol> arp = CreateObject<ArpL3Protocol> ();
ipv4->SetNode (node);