Re: 2.2.15 + IPv6: serious bug when removing aliased interfaces

From: Peter T. Breuer (ptb@it.uc3m.es)
Date: Mon May 22 2000 - 17:35:09 EST


"A month of sundays ago Kurt Roeckx wrote:"
> On Mon, May 22, 2000 at 01:38:38PM +0200, Peter T. Breuer wrote:
> > But it really is probable that this is a kernel bug wrt sockets when the
> > address family != AF_INET. The above usually avoids triggering it.
>
> I took a look at the kernel now, and found this in
> net/ipv4/devinet.c:devinet_ioctl():
>

> if (!(ifr.ifr_flags&IFF_UP))
> inet_del_ifa(in_dev, ifap, 1);
> break;
> }
> #endif
> ret = dev_change_flags(dev, ifr.ifr_flags);
> break;
>
>
> If I understand it correctly, this is called for AF_INET only, and will
> call inet_del_ifa() if it's an alias, and not the dev_change_flags().

You are saying that inet_del_ifa(in_dev, ifap, 1) should be called
in all cases when we're on an alias device (as determined by the colon
in the name). I think you're right. Anyone else?

> in_dev probably [points] to the correct alias here.

Peter

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue May 23 2000 - 21:00:22 EST