src/node/ipv4.h
changeset 1867 16deaedc0380
parent 1795 820cc1254290
parent 1866 e7dbcc4df546
child 1870 67b3d2dea3d5
equal deleted inserted replaced
1803:4078e5efdfc6 1867:16deaedc0380
    64    * \param Ipv4Header the IP header supplied to the route request
    64    * \param Ipv4Header the IP header supplied to the route request
    65    * method (possibly modified in case a new routing header is
    65    * method (possibly modified in case a new routing header is
    66    * inserted and consequently the protocol type has to change).
    66    * inserted and consequently the protocol type has to change).
    67    *
    67    *
    68    */
    68    */
    69   typedef Callback<void, bool, const Ipv4Route&, Packet, const Ipv4Header&> RouteReplyCallback;
    69   typedef Callback<void, bool, const Ipv4Route&, Ptr<Packet>, const Ipv4Header&> RouteReplyCallback;
    70 
    70 
    71   /**
    71   /**
    72    * \brief Asynchronously requests a route for a given packet and IP header
    72    * \brief Asynchronously requests a route for a given packet and IP header
    73    *
    73    *
    74    * \param ifIndex The interface index on which the packet was received.
    74    * \param ifIndex The interface index on which the packet was received.
   101    * immediately after the IP header, although most routing do not
   101    * immediately after the IP header, although most routing do not
   102    * insert any extra header.
   102    * insert any extra header.
   103    */
   103    */
   104   virtual bool RequestRoute (uint32_t ifIndex,
   104   virtual bool RequestRoute (uint32_t ifIndex,
   105                              const Ipv4Header &ipHeader,
   105                              const Ipv4Header &ipHeader,
   106                              Packet packet,
   106                              Ptr<Packet> packet,
   107                              RouteReplyCallback routeReply) = 0;
   107                              RouteReplyCallback routeReply) = 0;
   108 
   108 
   109 /**
   109 /**
   110  * \brief Synchronously check to see if we can determine the interface index 
   110  * \brief Synchronously check to see if we can determine the interface index 
   111  * that will be used if a packet is sent to this destination.
   111  * that will be used if a packet is sent to this destination.