mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Dale Farnsworth" <Dale.Farnsworth@mvista.com>
To: davem@redhat.com
Cc: linux-kernel@vger.kernel.org
Subject: ip autoconfig skips ipv6 dev initialization
Date: Tue, 14 May 2002 15:32:30 -0700	[thread overview]
Message-ID: <20020514223230.GL15751@cuzco.az.mvista.com> (raw)

I've been doing some ipv6 testing here on some nfs-rooted 2.4.18 systems.
I found that ipv6 initialization isn't performed on an ipv4-autoconfigured
network device, leaving it without a link-local address.  It happens
because ip_auto_config() is executed before inet6_init() has a chance
to register to handle NETDEV_UP notifications.  This only occurs when
ipv6 support is compiled into the kernel.

A fix is to do the ipv6 initialization before ipv4 initialization.
The included patch resolved it for me.  Please apply or suggest an
alternative.

Thanks,
-Dale Farnsworth

--- linux.orig/net/Makefile	Tue May 14 12:33:40 2002
+++ linux/net/Makefile	Tue May 14 12:34:35 2002
@@ -15,10 +15,10 @@
 
 
 subdir-$(CONFIG_NET)		+= 802 sched netlink
+subdir-$(CONFIG_IPV6)		+= ipv6
 subdir-$(CONFIG_INET)		+= ipv4
 subdir-$(CONFIG_NETFILTER)	+= ipv4/netfilter
 subdir-$(CONFIG_UNIX)		+= unix
-subdir-$(CONFIG_IPV6)		+= ipv6
 
 ifneq ($(CONFIG_IPV6),n)
 ifneq ($(CONFIG_IPV6),)


             reply	other threads:[~2002-05-14 22:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-14 22:32 Dale Farnsworth [this message]
2002-05-15  3:07 ` David S. Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020514223230.GL15751@cuzco.az.mvista.com \
    --to=dale.farnsworth@mvista.com \
    --cc=davem@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®