Reset the route expiry time on each update rather than always letting them get
GC'd and recreated.
This commit is contained in:
parent
bc9f74c7cb
commit
ef9ac7c49a
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user