From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31656 invoked by alias); 20 Jun 2005 10:26:38 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 31638 invoked by uid 22791); 20 Jun 2005 10:26:30 -0000 Received: from anchor-post-34.mail.demon.net (HELO anchor-post-34.mail.demon.net) (194.217.242.92) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 20 Jun 2005 10:26:30 +0000 Received: from calivar.demon.co.uk ([83.104.54.243] helo=xl5.calivar.com) by anchor-post-34.mail.demon.net with esmtp (Exim 4.42) id 1DkJU0-0005c1-DI; Mon, 20 Jun 2005 10:26:24 +0000 Received: from xl5.calivar.com (localhost [127.0.0.1]) by xl5.calivar.com (Postfix) with ESMTP id 3F0765DC3; Mon, 20 Jun 2005 11:26:23 +0100 (BST) To: "Arnaud Chataignier" Cc: "'Gary Thomas'" , "'Andrew Lunn'" , "'Sturle Mastberg'" , "'eCos Discussion'" References: <001001c57577$1c629d30$140032be@ArnaudC> From: Nick Garnett Original-Sender: nickg@ecoscentric.com Date: Mon, 20 Jun 2005 10:26:00 -0000 In-Reply-To: <001001c57577$1c629d30$140032be@ArnaudC> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [ECOS] RE : [ECOS] Possible fix for duplicated ARP entries in the FreeBSDstack X-SW-Source: 2005-06/txt/msg00169.txt.bz2 "Arnaud Chataignier" writes: > Thank you all for the analysis. I was encountering this bug from a long > time now, and fixing it is great news for me. > > One person did post a temporary patch to this problem a long time ago, > but it didn't seem to really correct the cause of the problem, it was > just avoiding it : > http://sourceware.org/ml/ecos-discuss/2004-11/msg00150.html > > May anyone post a patch corresponding to this real correction ? As far > as I understand, it is only a matter of changing the size of the sa_data > member back to 14 ? I think the analysis indicates that the sa_data field should not be changed back to 14, that would break IPv6 support. I suspect the correct solution is to increase sockaddr_inarp to match sockaddr and sockaddr_in. However, this code is Gary's baby, so he should have the last say. The root cause of this is some rather questionable assumptions in the BSD stack about equivalence of sizes of various structures. These probably don't have any effect in BSD since the copying between user and kernel space masks problem. -- Nick Garnett eCos Kernel Architect http://www.ecoscentric.com The eCos and RedBoot experts -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss