diff options
author | shin <shin@FreeBSD.org> | 2000-03-14 18:17:55 +0000 |
---|---|---|
committer | shin <shin@FreeBSD.org> | 2000-03-14 18:17:55 +0000 |
commit | 296524942dc068fe07dc9fcde49c98a20b6c3416 (patch) | |
tree | 306a83a830c90f076e75e806a5c73e41e239eb82 | |
parent | d509b238de89ee14f9c55741b24d2add9bd938fe (diff) | |
download | FreeBSD-src-296524942dc068fe07dc9fcde49c98a20b6c3416.zip FreeBSD-src-296524942dc068fe07dc9fcde49c98a20b6c3416.tar.gz |
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
-rw-r--r-- | usr.sbin/route6d/route6d.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/route6d/route6d.c b/usr.sbin/route6d/route6d.c index 2e8deac..7097485 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; |