summaryrefslogtreecommitdiffstats
path: root/sbin/routed/table.c
diff options
context:
space:
mode:
authorbms <bms@FreeBSD.org>2004-06-15 00:23:26 +0000
committerbms <bms@FreeBSD.org>2004-06-15 00:23:26 +0000
commitca5dd87a5d2cbe7462b3922f81c7b1b4aa2987d9 (patch)
tree6936a0792790a4b4122046f4bdf13051ce0736ea /sbin/routed/table.c
parent1b46d4f7ae356644be7e7251475f9065eb7fe2a2 (diff)
downloadFreeBSD-src-ca5dd87a5d2cbe7462b3922f81c7b1b4aa2987d9.zip
FreeBSD-src-ca5dd87a5d2cbe7462b3922f81c7b1b4aa2987d9.tar.gz
Ignore kernel routes with the RTF_WASCLONED flag set. This is a slight
modification of a patch which was already applied for BSD/OS in the Rhyolite.com sources; this file is already off the vendor branch. PR: bin/57484 Submitted by: Richard Perini
Diffstat (limited to 'sbin/routed/table.c')
-rw-r--r--sbin/routed/table.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/routed/table.c b/sbin/routed/table.c
index d5ad6b0..5dfd195 100644
--- a/sbin/routed/table.c
+++ b/sbin/routed/table.c
@@ -1110,10 +1110,10 @@ flush_kern(void)
if (rtm->rtm_flags & RTF_LLINFO)
continue;
-#if defined(RTF_CLONED) && defined(__bsdi__)
+#if defined(RTF_WASCLONED) && defined(__FreeBSD__)
/* ignore cloned routes
*/
- if (rtm->rtm_flags & RTF_CLONED)
+ if (rtm->rtm_flags & RTF_WASCLONED)
continue;
#endif
@@ -1267,8 +1267,8 @@ read_rt(void)
continue;
}
-#if defined(RTF_CLONED) && defined(__bsdi__)
- if (m.r.rtm.rtm_flags & RTF_CLONED) {
+#if defined(RTF_WASCLONED) && defined(__FreeBSD__)
+ if (m.r.rtm.rtm_flags & RTF_WASCLONED) {
trace_act("ignore cloned %s", str);
continue;
}
OpenPOWER on IntegriCloud