Changeset View
Changeset View
Standalone View
Standalone View
head/sys/net/route_temporal.c
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | |||||
#include <net/route_var.h> | #include <net/route_var.h> | ||||
#include <net/vnet.h> | #include <net/vnet.h> | ||||
/* | /* | ||||
* Callback returning 1 for the expired routes. | * Callback returning 1 for the expired routes. | ||||
* Updates time of the next nearest route expiration as a side effect. | * Updates time of the next nearest route expiration as a side effect. | ||||
*/ | */ | ||||
static int | static int | ||||
expire_route(const struct rtentry *rt, void *arg) | expire_route(const struct rtentry *rt, const struct nhop_object *nh, void *arg) | ||||
{ | { | ||||
time_t *next_callout; | time_t *next_callout; | ||||
if (rt->rt_expire == 0) | if (rt->rt_expire == 0) | ||||
return (0); | return (0); | ||||
if (rt->rt_expire <= time_uptime) | if (rt->rt_expire <= time_uptime) | ||||
return (1); | return (1); | ||||
▲ Show 20 Lines • Show All 99 Lines • Show Last 20 Lines |