summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2004-12-06 19:02:43 +0000
committerglebius <glebius@FreeBSD.org>2004-12-06 19:02:43 +0000
commita67e8a38b38a9e26a7aa278eec06e751f91dc0da (patch)
treeb6c94e3ca80e6a3b681646a9332d94a380ec0358 /sys/netinet
parentaa4aa62af0e8c0c4f728c9ba05822f4f444bae04 (diff)
downloadFreeBSD-src-a67e8a38b38a9e26a7aa278eec06e751f91dc0da.zip
FreeBSD-src-a67e8a38b38a9e26a7aa278eec06e751f91dc0da.tar.gz
- 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
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/in_gif.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/netinet/in_gif.c b/sys/netinet/in_gif.c
index 873255f..41e7691 100644
--- a/sys/netinet/in_gif.c
+++ b/sys/netinet/in_gif.c
@@ -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);
}
OpenPOWER on IntegriCloud