Received: with ECARTIS (v1.0.0; list netdev); Sun, 30 Mar 2003 05:09:26 -0800 (PST) Received: from yue.hongo.wide.ad.jp (yue.hongo.wide.ad.jp [203.178.139.94]) by oss.sgi.com (8.12.8/8.12.5) with SMTP id h2UD8Zq9001078 for ; Sun, 30 Mar 2003 05:09:16 -0800 Received: from localhost (localhost [127.0.0.1]) by yue.hongo.wide.ad.jp (8.12.3+3.5Wbeta/8.12.3/Debian-5) with ESMTP id h2UD8TDG031461; Sun, 30 Mar 2003 22:08:29 +0900 Date: Sun, 30 Mar 2003 22:08:29 +0900 (JST) Message-Id: <20030330.220829.129728506.yoshfuji@linux-ipv6.org> To: usagi-users@linux-ipv6.org, pioppo@ferrara.linux.it Cc: netdev@oss.sgi.com, linux-kernel@vger.kernel.org, ds6-devel@deepspace6.net Subject: Re: (usagi-users 02296) IPv6 duplicate address bugfix From: YOSHIFUJI Hideaki / =?iso-2022-jp?B?GyRCNUhGIzFRTEAbKEI=?= In-Reply-To: <20030330122705.GA18283@ferrara.linux.it> References: <20030330122705.GA18283@ferrara.linux.it> Organization: USAGI Project X-URL: http://www.yoshifuji.org/%7Ehideaki/ X-Fingerprint: 90 22 65 EB 1E CF 3A D1 0B DF 80 D8 48 07 F8 94 E0 62 0E EA 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/MEaZBLP X-Mailer: Mew version 2.2 on Emacs 20.7 / Mule 4.1 (AOI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-archive-position: 2101 X-ecartis-version: Ecartis v1.0.0 Sender: netdev-bounce@oss.sgi.com Errors-to: netdev-bounce@oss.sgi.com X-original-sender: yoshfuji@linux-ipv6.org Precedence: bulk X-list: netdev Content-Length: 1606 Lines: 41 In article <20030330122705.GA18283@ferrara.linux.it> (at Sun, 30 Mar 2003 14:27:05 +0200), Simone Piunno says: > When adding an IPv6 address to a given interface, I'm allowed to > add that address multiple time, e.g.: > > [root@abulafia root]# ip addr add 3ffe:4242:4242::1 dev eth0 > [root@abulafia root]# ip addr add 3ffe:4242:4242::1 dev eth0 > [root@abulafia root]# ip addr add 3ffe:4242:4242::1 dev eth0 > [root@abulafia root]# ip addr show dev eth0 > 2: eth0: mtu 1500 qdisc pfifo_fast qlen 100 > link/ether 00:48:54:1b:25:30 brd ff:ff:ff:ff:ff:ff > inet6 3ffe:4242:4242::1/128 scope global > inet6 3ffe:4242:4242::1/128 scope global > inet6 3ffe:4242:4242::1/128 scope global > inet6 fe80::248:54ff:fe1b:2530/10 scope link > > Apparently, this is not a stability problem, because I'm allowed to > delete 3 times that address before receving a "not found" error, > but there's no reason to allow multiple instances of the same address > on the same interface, so this is a bug nonetheless. > > Bug is confirmed on: > - 2.4.20 > - 2.5.66 > - latest -usagi usagi code does not act like that. In my environment, # ip addr add 3ffe:4242:4242::1 dev eth0 # ip addr add 3ffe:4242:4242::1 dev eth0 RTNETLINK answers: No buffer space available # ip addr add 3ffe:4242:4242::1 dev eth0 RTNETLINK answers: No buffer space available And, patch does not seem optimal. I'd take a look at very soon. -- Hideaki YOSHIFUJI @ USAGI Project GPG FP: 9022 65EB 1ECF 3AD1 0BDF 80D8 4807 F894 E062 0EEA