Subject: Re: The bughunt is on!
To: None <current-users@NetBSD.ORG>
From: Christos Zoulas <christos@nyc.deshaw.com>
List: current-users
Date: 09/25/1997 22:41:30
In article <Pine.BSI.3.96.970925152757.4047B-100000@urchin.bga.com> Dave Huang <khym@bga.com> writes:
>FWIW, some bugs I can think of that really really need to be fixed before
>1.3 are the one with mail needing /var/mail to be writeable (PR 3063), and
>the one with routed being generally weird ever since it got upgraded many
>months ago. I thought there was a PR open on that one, but I don't see it
>anywhere... weird. Someone on port-mac68k recently ran across it though:
>
>> Date: Thu, 25 Sep 1997 01:41:05 -0400 (EDT)
>> From: Johnny Chi-Lung Lam <jlbg+@andrew.cmu.edu>
>> To: port-mac68k@NetBSD.ORG
>> Subject: routed error
>> 
>> When I upgraded from 1.2.1 to -current, I found routed giving the
>> following error on startup:
>> 
>> routed[148]: sendto(ae0, 224.0.0.2): No route to host
>> 
>> Also, when I connect with PPP with the defaultroute option, I get:
>> 
>> routed[148]: sendto(ppp0, 128.2.13.2.520): Network is down
>> 
>> The default route doesn't actually get added.  When I add it
>> explicitly, I get:
>> 
>> routed[148]: static route 0.0.0.0 --> 128.2.120.135 impossibly lacks ifp
>> 
>> Can someone explain what's happening?

I've been asking about this for a while... Can you try this patch?

*** if.c.orig	Fri Sep 19 12:24:56 1997
--- if.c	Tue Sep 16 14:59:32 1997
***************
*** 247,253 ****
  		for (ifp = ifnet; ifp; ifp = ifp->int_next) {
  			if (ifp->int_if_flags & IFF_POINTOPOINT) {
  				/* finished with a match */
! 				if (ifp->int_dstaddr == addr)
  					return ifp;
  
  			} else {
--- 247,254 ----
  		for (ifp = ifnet; ifp; ifp = ifp->int_next) {
  			if (ifp->int_if_flags & IFF_POINTOPOINT) {
  				/* finished with a match */
! 				if (ifp->int_dstaddr == addr ||
! 				    ifp->int_addr == addr)
  					return ifp;
  
  			} else {

christos