void handleRouteRequest(AodvRReq request, NetworkInterface netInt) { setRoute(request.Source, netInt); if (request.Destination == node) { AodvRRep reply = new AodvRRep(node); RoutingInfoBundle bundle = new RoutingInfoBundle(node, request.Source, reply); Route(bundle); } }
void handleRouteReply(AodvRRep reply, NetworkInterface netInt) { setRoute(reply.Source, netInt); }