add back internet-node.h header for MakeInternetNode function

This commit is contained in:
Mathieu Lacage
2007-05-14 09:26:51 +02:00
parent 0d9f136298
commit 4ac0069541
2 changed files with 73 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2007 INRIA
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
*/
#include "internet-node.h"
#include "i-node-impl.h"
namespace ns3 {
Ptr<Node>
MakeInternetNode (void)
{
return MakeNewObject<InternetNode> ();
}
Ptr<Node>
MakeInternetNode (uint32_t systemId)
{
return MakeNewObject<InternetNode> (systemId);
}
} // namespace ns3

View File

@@ -0,0 +1,35 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2007 INRIA
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
*/
#ifndef INTERNET_NODE_H
#define INTERNET_NODE_H
#include "ns3/i-node.h"
#include "ns3/ptr.h"
namespace ns3 {
Ptr<Node> MakeInternetNode (void);
Ptr<Node> MakeInternetNode (uint32_t systemId);
} // namespace ns3
#endif /* INTERNET_NODE_H */