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
This commit is contained in:
shin 2000-03-14 18:17:55 +00:00
parent d509b238de
commit 296524942d

View File

@ -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;