Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 107087 Details for
Bug 161907
kernel-2.6.19-gentoo-r4 does not pickup ipv6 addresses
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix
ipv6.patch (text/plain), 2.75 KB, created by
Daniel Drake (RETIRED)
on 2007-01-15 18:48:59 UTC
(
hide
)
Description:
fix
Filename:
MIME Type:
Creator:
Daniel Drake (RETIRED)
Created:
2007-01-15 18:48:59 UTC
Size:
2.75 KB
patch
obsolete
>Date: Mon, 15 Jan 2007 03:56:01 +0900 (JST) >Message-Id: <20070115.035601.10978849.yoshfuji@linux-ipv6.org> >To: davem@davemloft.net >Cc: netdev@vger.kernel.org, gernoth@informatik.uni-erlangen.de, > yoshfuji@linux-ipv6.org >Subject: [PATCH] [IPV6] MCAST: Fix joining all-node multicast group on > device initialization. >From: YOSHIFUJI Hideaki / =?iso-2022-jp?B?GyRCNUhGIzFRTEAbKEI=?= > <yoshfuji@linux-ipv6.org> >In-Reply-To: <20070113134506.6021cf79.akpm@osdl.org> >References: <200701131344.l0DDidDq007345@fire-2.osdl.org> > <20070113134506.6021cf79.akpm@osdl.org> >Organization: USAGI/WIDE Project >X-URL: http://www.yoshifuji.org/%7Ehideaki/ >X-Fingerprint: 9022 65EB 1ECF 3AD1 0BDF 80D8 4807 F894 E062 0EEA >X-PGP-Key-URL: http://www.yoshifuji.org/%7Ehideaki/hideaki@yoshifuji.org.asc >X-Face: "5$Al-.M>NJ%a'@hhZdQm:."qn~PA^gq4o*>iCFToq*bAi#4FRtx}enhuQKz7fNqQz\BYU] > $~O_5m-9'}MIs`XGwIEscw;e5b>n"B_?j/AkL~i/MEa<!5P`&C$@oP>ZBLP >X-Mailer: Mew version 3.3 on Emacs 20.7 / Mule 4.1 (AOI) >Mime-Version: 1.0 >Content-Type: Text/Plain; charset=us-ascii >Content-Transfer-Encoding: 7bit >Sender: netdev-owner@vger.kernel.org >Precedence: bulk >X-Mailing-List: netdev@vger.kernel.org >X-Virus-Scan: scanned > >[IPV6] MCAST: Fix joining all-node multicast group on device initialization. > >Join all-node multicast group after assignment of dev->ip6_ptr >because it must be assigned when ipv6_dev_mc_inc() is called. >This fixes Bug#7817, reported by <gernoth@informatik.uni-erlangen.de>. > >Closes: 7817 >Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> > >diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c >index 171e5b5..2a7e461 100644 >--- a/net/ipv6/addrconf.c >+++ b/net/ipv6/addrconf.c >@@ -341,6 +341,7 @@ void in6_dev_finish_destroy(struct inet6_dev *idev) > static struct inet6_dev * ipv6_add_dev(struct net_device *dev) > { > struct inet6_dev *ndev; >+ struct in6_addr maddr; > > ASSERT_RTNL(); > >@@ -425,6 +426,11 @@ static struct inet6_dev * ipv6_add_dev(struct net_device *dev) > #endif > /* protected by rtnl_lock */ > rcu_assign_pointer(dev->ip6_ptr, ndev); >+ >+ /* Join all-node multicast group */ >+ ipv6_addr_all_nodes(&maddr); >+ ipv6_dev_mc_inc(dev, &maddr); >+ > return ndev; > } > >diff --git a/net/ipv6/mcast.c b/net/ipv6/mcast.c >index a1c231a..882cde4 100644 >--- a/net/ipv6/mcast.c >+++ b/net/ipv6/mcast.c >@@ -2258,8 +2258,6 @@ void ipv6_mc_up(struct inet6_dev *idev) > > void ipv6_mc_init_dev(struct inet6_dev *idev) > { >- struct in6_addr maddr; >- > write_lock_bh(&idev->lock); > rwlock_init(&idev->mc_lock); > idev->mc_gq_running = 0; >@@ -2275,10 +2273,6 @@ void ipv6_mc_init_dev(struct inet6_dev *idev) > idev->mc_maxdelay = IGMP6_UNSOLICITED_IVAL; > idev->mc_v1_seen = 0; > write_unlock_bh(&idev->lock); >- >- /* Add all-nodes address. */ >- ipv6_addr_all_nodes(&maddr); >- ipv6_dev_mc_inc(idev->dev, &maddr); > } > > /* > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 161907
:
107016
| 107087