src/node/ipv4-l4-protocol.h
changeset 513 b7c7ea629de9
parent 503 38f16e0e5513
equal deleted inserted replaced
512:5404e1e41f82 513:b7c7ea629de9
    49 {
    49 {
    50 public:
    50 public:
    51   Ipv4L4Protocol(int protocolNumber, int version);
    51   Ipv4L4Protocol(int protocolNumber, int version);
    52   virtual ~Ipv4L4Protocol ();
    52   virtual ~Ipv4L4Protocol ();
    53 
    53 
    54   virtual void Dispose (void) = 0;
       
    55 
       
    56   /**
    54   /**
    57    * \returns the protocol number of this protocol.
    55    * \returns the protocol number of this protocol.
    58    */
    56    */
    59   int GetProtocolNumber (void) const;
    57   int GetProtocolNumber (void) const;
    60   /**
    58   /**
    73    * in the stack. 
    71    * in the stack. 
    74    */
    72    */
    75   virtual void Receive(Packet& p, 
    73   virtual void Receive(Packet& p, 
    76                        Ipv4Address const &source,
    74                        Ipv4Address const &source,
    77                        Ipv4Address const &destination) = 0;
    75                        Ipv4Address const &destination) = 0;
    78 
    76 protected:
    79  private:
    77   virtual void DoDispose (void);
       
    78 private:
    80   int m_protocolNumber;
    79   int m_protocolNumber;
    81   int m_version;
    80   int m_version;
    82 };
    81 };
    83 
    82 
    84 } // Namespace ns3
    83 } // Namespace ns3