Skip to content

Commit

Permalink
[IPV6] ADDRCONF: Register inet6_dev earlier.
Browse files Browse the repository at this point in the history
Allocate inet6_dev earlier to allow users to set up per-interface variables.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
  • Loading branch information
YOSHIFUJI Hideaki authored and David S. Miller committed Feb 26, 2007
1 parent 46d4804 commit 45ba9dd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions net/ipv6/addrconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -2177,6 +2177,14 @@ static int addrconf_notify(struct notifier_block *this, unsigned long event,
int run_pending = 0;

switch(event) {
case NETDEV_REGISTER:
if (!idev) {
idev = ipv6_add_dev(dev);
if (!idev)
printk(KERN_WARNING "IPv6: add_dev failed for %s\n",
dev->name);
}
break;
case NETDEV_UP:
case NETDEV_CHANGE:
if (event == NETDEV_UP) {
Expand Down

0 comments on commit 45ba9dd

Please sign in to comment.