Commit 6a3be6d1 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Remove unused field route->origtime.

parent d76d7a8e
......@@ -412,11 +412,8 @@ update_route(const unsigned char *a, const unsigned char *p, unsigned char plen,
}
route->src = src;
if(feasible && refmetric < INFINITY) {
if(feasible && refmetric < INFINITY)
route->time = now.tv_sec;
if(route->refmetric >= INFINITY)
route->origtime = now.tv_sec;
}
route->seqno = seqno;
route->refmetric = refmetric;
change_route_metric(route, metric);
......@@ -450,7 +447,6 @@ update_route(const unsigned char *a, const unsigned char *p, unsigned char plen,
route->neigh = neigh;
memcpy(route->nexthop, nexthop, 16);
route->time = now.tv_sec;
route->origtime = now.tv_sec;
route->installed = 0;
numroutes++;
consider_route(route);
......
......@@ -28,7 +28,6 @@ struct route {
struct neighbour *neigh;
unsigned char nexthop[16];
time_t time;
time_t origtime;
int installed;
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment