From 220f01cd2ddbf87e83918c8d6e27af17cea35bd9 Mon Sep 17 00:00:00 2001 From: Munechika SUMIKAWA Date: Thu, 9 Aug 2001 19:40:35 +0000 Subject: [PATCH] Do not delete 'goto ours' routes when using -c option. Obtained from: KAME --- usr.sbin/ndp/ndp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/usr.sbin/ndp/ndp.c b/usr.sbin/ndp/ndp.c index d1e74a280982..8e2fb781e629 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);