mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-04 07:31:11 +00:00
- Make route cacheing optional, configurable via IFF_LINK0 flag.
- Turn it off by default. Requested by: many Reviewed by: andre Approved by: julian (mentor) MFC after: 3 days
This commit is contained in:
parent
d54d263a79
commit
98335aa976
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=138470
|
@ -209,6 +209,12 @@ in_gif_output(ifp, family, m)
|
|||
}
|
||||
|
||||
error = ip_output(m, NULL, &sc->gif_ro, 0, NULL, NULL);
|
||||
|
||||
if ((sc->gif_if.if_flags & IFF_LINK0) == 0) {
|
||||
RTFREE(sc->gif_ro.ro_rt);
|
||||
sc->gif_ro.ro_rt = NULL;
|
||||
}
|
||||
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue