Update nexthop last update time when the first retract has been received

This commit is contained in:
Matthias Schiffer 2013-08-03 17:25:02 +02:00
parent 43ff1c3ed5
commit 1d092504e4

View file

@ -190,12 +190,12 @@ void gp_babel_route_update(gmrf_context_t *ctx, gp_babel_route_t *route) {
}
void gp_babel_route_update_nexthop(gmrf_context_t *ctx, gp_babel_route_t *route, gp_babel_nexthop_t *nexthop, gp_babel_metric_seqno_t ms, uint16_t interval) {
if (ms.metric != GP_BABEL_INFINITY || nexthop->metric_seqno.metric != GP_BABEL_INFINITY)
nexthop->last_update = gmrf_now(ctx->gmrf);
nexthop->metric_seqno = ms;
nexthop->interval = interval;
nexthop->requested_update = false;
if (ms.metric != GP_BABEL_INFINITY)
nexthop->last_update = gmrf_now(ctx->gmrf);
gp_babel_route_update(ctx, route);
}