From 296524942dc068fe07dc9fcde49c98a20b6c3416 Mon Sep 17 00:00:00 2001 From: shin Date: Tue, 14 Mar 2000 18:17:55 +0000 Subject: [PATCH] When unexpected rtmsg was received, route6d was dying. So change it just to log it. (Merge from recent KAME bug fix.) Submitted by: itojun Obtained from: KAME project --- usr.sbin/route6d/route6d.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/usr.sbin/route6d/route6d.c b/usr.sbin/route6d/route6d.c index 2e8deac3696f..7097485d949c 100644 --- a/usr.sbin/route6d/route6d.c +++ b/usr.sbin/route6d/route6d.c @@ -2078,8 +2078,10 @@ rt_entry(rtm, again) s = rtm->rtm_index; if (s < nindex2ifc && index2ifc[s]) ifname = index2ifc[s]->ifc_name; - else - fatal("Unknown interface %d", s); + else { + trace(1, " not configured\n"); + return; + } trace(1, " if %s sock %d\n", ifname, s); rrt->rrt_index = s;