src/helper/static-multicast-route-helper.h
changeset 5028 01f02baebba9
parent 5025 fc820a3a1975
parent 4475 a232dcbbe7a8
child 5029 141a8e5fd047
equal deleted inserted replaced
5025:fc820a3a1975 5028:01f02baebba9
     1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
       
     2 /*
       
     3  * Copyright (c) 2008 University of Washington
       
     4  *
       
     5  * This program is free software; you can redistribute it and/or modify
       
     6  * it under the terms of the GNU General Public License version 2 as
       
     7  * published by the Free Software Foundation;
       
     8  *
       
     9  * This program is distributed in the hope that it will be useful,
       
    10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
       
    12  * GNU General Public License for more details.
       
    13  *
       
    14  * You should have received a copy of the GNU General Public License
       
    15  * along with this program; if not, write to the Free Software
       
    16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
       
    17  *
       
    18  * Author: Tom Henderson <tomhend@u.washington.edu>
       
    19  */
       
    20 #ifndef STATIC_MULTICAST_ROUTE_HELPER_H
       
    21 #define STATIC_MULTICAST_ROUTE_HELPER_H
       
    22 
       
    23 #include "ns3/ptr.h"
       
    24 #include "ns3/ipv4-address.h"
       
    25 #include "ns3/node.h"
       
    26 #include "ns3/net-device.h"
       
    27 #include "node-container.h"
       
    28 #include "net-device-container.h"
       
    29 
       
    30 namespace ns3 {
       
    31 
       
    32 class StaticMulticastRouteHelper
       
    33 {
       
    34 public:
       
    35   StaticMulticastRouteHelper ();
       
    36 
       
    37   void AddMulticastRoute (Ptr<Node> n, Ipv4Address source, Ipv4Address group,  
       
    38     Ptr<NetDevice> input, NetDeviceContainer output);
       
    39   void AddMulticastRoute (std::string n, Ipv4Address source, Ipv4Address group,  
       
    40     Ptr<NetDevice> input, NetDeviceContainer output);
       
    41   void AddMulticastRoute (Ptr<Node> n, Ipv4Address source, Ipv4Address group,  
       
    42     std::string inputName, NetDeviceContainer output);
       
    43   void AddMulticastRoute (std::string nName, Ipv4Address source, Ipv4Address group,  
       
    44     std::string inputName, NetDeviceContainer output);
       
    45 
       
    46   void SetDefaultMulticastRoute (Ptr<Node> n, Ptr<NetDevice> nd);
       
    47   void SetDefaultMulticastRoute (Ptr<Node> n, std::string ndName);
       
    48   void SetDefaultMulticastRoute (std::string nName, Ptr<NetDevice> nd);
       
    49   void SetDefaultMulticastRoute (std::string nName, std::string ndName);
       
    50 
       
    51   void JoinMulticastGroup (Ptr<Node> n, Ipv4Address source, Ipv4Address group);
       
    52   void JoinMulticastGroup (std::string nName, Ipv4Address source, Ipv4Address group);
       
    53 };
       
    54 
       
    55 } // namespace ns3
       
    56 
       
    57 #endif /* STATIC_MULTICAST_ROUTE_HELPER_H */