Subject: vlan0 and if_alloc_sadl
To: None <email@example.com>
From: None <firstname.lastname@example.org>
Date: 01/29/2001 09:27:28
>On Sun, Jan 28, 2001 at 12:41:45PM +0200, Jun-ichiro itojun Hagino wrote:
> > Modified Files:
> > syssrc/sys/net: if_vlan.c
> > Log Message:
> > call if_alloc_sadl(). without it the following operation causes kernel panic:
> > # ifconfig vlan0 create
> > # ifconfig vlan0
>Erg -- this change is acutally wrong. The sadl is supposed to get allocated
>when you hook it up to an interface.
>I'll take a look at the problem a little later today.
if we don't have AF_LINK address attached to ifp, ifp->if_addrlist
will be empty. sysctl_iflist (and maybe others) assume that
ifp->if_addrlist is non-empty.