summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsumikawa <sumikawa@FreeBSD.org>2001-08-09 19:40:35 +0000
committersumikawa <sumikawa@FreeBSD.org>2001-08-09 19:40:35 +0000
commita3649b3839e2d0514dc2e48c62c4e2ffca0032fa (patch)
treecb09d3474483aff34497b4bd701a053e154f83b2
parenteadfc19f0c88f080ed9e9cf13bbfe807f019e74a (diff)
downloadFreeBSD-src-a3649b3839e2d0514dc2e48c62c4e2ffca0032fa.zip
FreeBSD-src-a3649b3839e2d0514dc2e48c62c4e2ffca0032fa.tar.gz
Do not delete 'goto ours' routes when using -c option.
Obtained from: KAME
-rw-r--r--usr.sbin/ndp/ndp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.sbin/ndp/ndp.c b/usr.sbin/ndp/ndp.c
index d1e74a2..8e2fb78 100644
--- a/usr.sbin/ndp/ndp.c
+++ b/usr.sbin/ndp/ndp.c
@@ -637,7 +637,12 @@ again:;
sizeof(host_buf), NULL, 0,
NI_WITHSCOPEID | (nflag ? NI_NUMERICHOST : 0));
if (cflag == 1) {
+#ifdef RTF_WASCLONED
+ if (rtm->rtm_flags & RTF_WASCLONED)
+ delete(host_buf);
+#else
delete(host_buf);
+#endif
continue;
}
gettimeofday(&time, 0);
OpenPOWER on IntegriCloud