- 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:
Gleb Smirnoff 2004-12-06 19:02:43 +00:00
parent d54d263a79
commit 98335aa976
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=138470

View file

@ -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);
}