Subject: Re: pim6sd bug?
To: None <tech-net@netbsd.org>
From: Jeff Ito <ijk@speakeasy.net>
List: tech-net
Date: 02/21/2006 16:39:09
On Tue, Feb 21, 2006 at 09:07:00PM +0000, Rui Paulo wrote:
> Jeff Ito <ijk@speakeasy.net> writes:
>
> > This equates to rtsock.c:957
> >
> > static int
> > sysctl_iflist(int af, struct walkarg *w, int type)
> > {
> > struct ifnet *ifp;
> > struct ifaddr *ifa;
> > struct rt_addrinfo info;
> > int len, error = 0;
> >
> > memset(&info, 0, sizeof(info));
> > IFNET_FOREACH(ifp) {
> > if (w->w_arg && w->w_arg != ifp->if_index)
> > continue;
> > ifa = TAILQ_FIRST(&ifp->if_addrlist);
>
> if (ifa == NULL)
> continue;
>
> > ifpaddr = ifa->ifa_addr; <<--<<--- line 957
> > switch (type) {
> > case NET_RT_IFLIST:
>
> Maybe this fixes it... not sure.
>
This fixes it for me.