src/internet-node/ipv4-private.h
changeset 1737 e72c130c3a59
parent 1728 190372a33951
parent 1312 8bc3f26344b9
child 1738 6a3e37af9d24
equal deleted inserted replaced
1728:190372a33951 1737:e72c130c3a59
     1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
       
     2 /*
       
     3  * Copyright (c) 2007 INRIA
       
     4  * All rights reserved.
       
     5  *
       
     6  * This program is free software; you can redistribute it and/or modify
       
     7  * it under the terms of the GNU General Public License version 2 as
       
     8  * published by the Free Software Foundation;
       
     9  *
       
    10  * This program is distributed in the hope that it will be useful,
       
    11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
       
    13  * GNU General Public License for more details.
       
    14  *
       
    15  * You should have received a copy of the GNU General Public License
       
    16  * along with this program; if not, write to the Free Software
       
    17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
       
    18  *
       
    19  * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
       
    20  */
       
    21 #ifndef IPV4_PRIVATE_H
       
    22 #define IPV4_PRIVATE_H
       
    23 
       
    24 #include "ns3/object.h"
       
    25 #include "ns3/ipv4-address.h"
       
    26 #include "ns3/ptr.h"
       
    27 #include <stdint.h>
       
    28 
       
    29 namespace ns3 {
       
    30 
       
    31 class Packet;
       
    32 class Ipv4L3Protocol;
       
    33 class TraceContext;
       
    34 class TraceResolver;
       
    35 class Ipv4Interface;
       
    36 class NetDevice;
       
    37 
       
    38 class Ipv4Private : public Object
       
    39 {
       
    40 public:
       
    41   static const InterfaceId iid;
       
    42   Ipv4Private (Ptr<Ipv4L3Protocol> ipv4);
       
    43   virtual ~Ipv4Private ();
       
    44 
       
    45   TraceResolver *CreateTraceResolver (TraceContext const &context);
       
    46   void Send (Packet const &packet, Ipv4Address source, 
       
    47 	     Ipv4Address destination, uint8_t protocol);
       
    48   Ipv4Interface *FindInterfaceForDevice (Ptr<const NetDevice>device);
       
    49   void Receive(Packet& p, Ptr<NetDevice> device);
       
    50 protected:
       
    51   virtual void DoDispose (void);
       
    52 private:
       
    53   Ptr<Ipv4L3Protocol> m_ipv4;
       
    54 };
       
    55 
       
    56 } // namespace ns3
       
    57 
       
    58 #endif /* IPV4_PRIVATE_H */