src/devices/point-to-point/point-to-point-ipv4-topology.h
changeset 1841 afa9089bcab4
equal deleted inserted replaced
1840:f5bb4b608832 1841:afa9089bcab4
       
     1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
       
     2 /*
       
     3  * This program is free software; you can redistribute it and/or modify
       
     4  * it under the terms of the GNU General Public License version 2 as
       
     5  * published by the Free Software Foundation;
       
     6  *
       
     7  * This program is distributed in the hope that it will be useful,
       
     8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
     9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
       
    10  * GNU General Public License for more details.
       
    11  *
       
    12  * You should have received a copy of the GNU General Public License
       
    13  * along with this program; if not, write to the Free Software
       
    14  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
       
    15  */
       
    16 
       
    17 #ifndef POINT_TO_POINT_IPV4_TOPOLOGY_H
       
    18 #define POINT_TO_POINT_IPV4_TOPOLOGY_H
       
    19 
       
    20 #include "ns3/ptr.h"
       
    21 
       
    22 namespace ns3 {
       
    23 
       
    24 class PointToPointChannel;
       
    25 class Node;
       
    26 class Ipv4Address;
       
    27 class Ipv4Mask;
       
    28 class DataRate;
       
    29 
       
    30 class PointToPointIpv4Topology {
       
    31 public:
       
    32   static Ptr<PointToPointChannel> CreateChannel (
       
    33     const DataRate& dataRate, const Time& delay);
       
    34 
       
    35   static uint32_t AddNetDevice(
       
    36     Ptr<Node> node,
       
    37     Ptr<PointToPointChannel> channel);
       
    38 
       
    39   static uint32_t AddAddress(
       
    40     Ptr<Node> node,
       
    41     uint32_t ndIndex,
       
    42     Ipv4Address address,
       
    43     Ipv4Mask mask);
       
    44 };
       
    45 
       
    46 } // namespace ns3
       
    47 
       
    48 #endif // POINT_TO_POINT_IPV4_TOPOLOGY_H
       
    49