Hello,

I am trying to run simulations that involve purging the route caches from DSR 
nodes in a network. Does anyone know how to purge the route caches from the DSR 
nodes? I have written code and placed it in MobiCache.cc and am able to access 
it using the following command in TCL:

$ns at 10.0 "$dsr(0) clear-cache"

and that line calls this function:

void
MobiCache::clearCache() {
        primary_cache = new Cache("primary", 30, this);
        secondary_cache = new Cache("secondary", 64, this);
        assert(primary_cache != NULL && secondary_cache != NULL);
        #ifdef DSR_CACHE_STATS
                stat.reset();
        #endif
}



The function is called fine, but the route caches don't get purged. I know this 
because (from the trace files) traffic is uninterrupted. If anyone has any 
suggestions or ideas, I would be greatly appreciative and thankful. Please help 
if you can.



Thank you.
Tae

Reply via email to