diff --git a/src/internet-node/internet-node.cc b/src/internet-node/internet-node.cc new file mode 100644 index 000000000..70b79578a --- /dev/null +++ b/src/internet-node/internet-node.cc @@ -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 + */ +#include "internet-node.h" +#include "i-node-impl.h" + +namespace ns3 { + +Ptr +MakeInternetNode (void) +{ + return MakeNewObject (); +} + +Ptr +MakeInternetNode (uint32_t systemId) +{ + return MakeNewObject (systemId); +} + +} // namespace ns3 diff --git a/src/internet-node/internet-node.h b/src/internet-node/internet-node.h new file mode 100644 index 000000000..b44cb89ba --- /dev/null +++ b/src/internet-node/internet-node.h @@ -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 + */ +#ifndef INTERNET_NODE_H +#define INTERNET_NODE_H + +#include "ns3/i-node.h" +#include "ns3/ptr.h" + +namespace ns3 { + +Ptr MakeInternetNode (void); + +Ptr MakeInternetNode (uint32_t systemId); + +} // namespace ns3 + +#endif /* INTERNET_NODE_H */