bug 592: Ipv4RoutingProtocol::RouteOutput needs a packet pointer argument for reactive protocols

This commit is contained in:
Josh Pelkey committed 2009-06-26 09:55:36 +02:00
1 parent 42f742dfb5
commit 278f186830
16 files changed
+26 -24

No files matched your search

+3 -1
View File
@@ -60,6 +60,8 @@ public:
* packet to be forwarded, and is synchronous. Can be used for
* multicast or unicast. The Linux equivalent is ip_route_output()
*
* \param p packet to be routed. Note that this method may modify the packet.
* Callers may also pass in a null pointer.
* \param header input parameter (used to form key to search for the route)
* \param oif Output interface index. May be zero, or may be bound via
* socket options to a particular output interface.
@@ -67,7 +69,7 @@ public:
*
* \returns a code that indicates what happened in the lookup
*/
virtual Ptr<Ipv4Route> RouteOutput (const Ipv4Header &header, uint32_t oif, Socket::SocketErrno &sockerr) = 0;
virtual Ptr<Ipv4Route> RouteOutput (Ptr<Packet> p, const Ipv4Header &header, uint32_t oif, Socket::SocketErrno &sockerr) = 0;
/**
* \brief Route an input packet (to be forwarded or locally delivered)