RecvReplyAck added

This commit is contained in:
Borovkova Elena
2009-08-18 12:17:49 +04:00
parent 04a0d79e09
commit 44e149b17f

View File

@@ -854,7 +854,7 @@ RoutingProtocol::SendReplyByIntermediateNode (RoutingTableEntry & toDst, Routing
void
RoutingProtocol::SendReplyAck (Ipv4Address neighbor )
{
NS_LOG_FUNCTION(this);
NS_LOG_FUNCTION (this << " to " << neighbor);
RrepAckHeader h;
TypeHeader typeHeader (AODVTYPE_RREP_ACK);
Ptr<Packet> packet = Create<Packet> ();
@@ -995,8 +995,14 @@ RoutingProtocol::RecvReply (Ptr<Packet> p, Ipv4Address receiver, Ipv4Address sen
void
RoutingProtocol::RecvReplyAck (Ipv4Address neighbor)
{
NS_LOG_LOGIC(this);
// TODO
NS_LOG_FUNCTION (this);
RoutingTableEntry rt;
if(m_routingTable.LookupRoute(neighbor, rt))
{
rt.m_ackTimer.Cancel ();
rt.SetFlag (VALID);
m_routingTable.Update(rt);
}
}
void