Exemplo n.º 1
0
void NS_CLASS route_delete_timeout(void *arg)
{
    rt_table_t *rt;

    rt = (rt_table_t *) arg;

    /* Sanity check: */
    if (!rt)
        return;

    DEBUG(LOG_DEBUG, 0, "%s", ip_to_str(rt->dest_addr));

    rt_table_delete(rt);
}
Exemplo n.º 2
0
void NS_CLASS route_delete_timeout(void *arg)
{
    rt_table_t *rt;

    rt = (rt_table_t *) arg;

    /* Sanity check: */
    if (!rt)
	return;

    DEBUG(LOG_DEBUG, 0, "%s", ip_to_str(rt->dest_addr));

    /* The kernel route entry is already deleted, so we only delete the
       internal AODV routing entry... */
    rt_table_delete(rt->dest_addr);
}
Exemplo n.º 3
0
void route_delete_timeout(void *arg) {
    rt_table_t *rt_entry;

    rt_entry = (rt_table_t *)arg;

    /* Sanity check: */
    if(rt_entry == NULL)
        return;

#ifdef DEBUG
    log(LOG_DEBUG, 0, "route_delete_timeout: %s",
        ip_to_str(rt_entry->dest_addr));
#endif
    /* The kernel route entry is already deleted, so we only delete the
       internal AODV routing entry... */
    rt_entry->timer_id = 0;
    rt_table_delete(rt_entry->dest_addr);

}