Reset the route expiry time on each update rather than always letting them get

GC'd and recreated.
This commit is contained in:
Andrew Thompson 2006-01-02 22:29:41 +00:00
parent bc9f74c7cb
commit ef9ac7c49a

View File

@ -2152,11 +2152,10 @@ bridge_rtupdate(struct bridge_softc *sc, const uint8_t *dst,
}
brt->brt_ifp = dst_if;
if (setflags) {
brt->brt_expire = (flags & IFBAF_STATIC) ? 0 :
time_uptime + sc->sc_brttimeout;
if (setflags)
brt->brt_flags = flags;
brt->brt_expire = (flags & IFBAF_STATIC) ? 0 :
time_uptime + sc->sc_brttimeout;
}
return (0);
}