Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 12 Nov 2002 15:29:22 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 12 Nov 2002 15:29:22 -0500 Received: from webmail.topspin.com ([12.162.17.3]:24705 "EHLO exch-1.topspincom.com") by vger.kernel.org with ESMTP id ; Tue, 12 Nov 2002 15:29:20 -0500 To: Alan Cox Cc: "David S. Miller" , Linux Kernel Mailing List Subject: Re: [PATCH] [RFC] increase MAX_ADDR_LEN References: <20021111.151929.31543489.davem@redhat.com> <52r8drn0jk.fsf_-_@topspin.com> <20021111.153845.69968013.davem@redhat.com> <1037060322.2887.76.camel@irongate.swansea.linux.org.uk> <52isz3mza0.fsf@topspin.com> <1037111029.8321.12.camel@irongate.swansea.linux.org.uk> <521y5qn7l5.fsf@topspin.com> <1037116836.8500.55.camel@irongate.swansea.linux.org.uk> X-Message-Flag: Warning: May contain useful information X-Priority: 1 X-MSMail-Priority: High From: Roland Dreier Date: 12 Nov 2002 12:36:10 -0800 In-Reply-To: <1037116836.8500.55.camel@irongate.swansea.linux.org.uk> Message-ID: <52adkele4l.fsf@topspin.com> User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp X-OriginalArrivalTime: 12 Nov 2002 20:36:06.0234 (UTC) FILETIME=[2008F3A0:01C28A8B] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1442 Lines: 28 >>>>> "Alan" == Alan Cox writes: Alan> 1. Increase MAX_ADDR_LEN 2. Add some new address setting Alan> ioctls, and ensure the old ones keep the old address length Alan> limit. That is needed because the old caller wont have Alan> allocated enough address space for a 20 byte address return. Thanks to YOSHIFUJI Hideaki / 吉藤英明, I had a look at rtnetlink. It seems like we would get the necessary address setting functionality if I implemented the following: 1. Add an RTM_SETLINK message type that handles at least the IFLA_ADDRESS attribute. This would replace SIOCSIFHWADDR for interfaces with long hardware addresses. 2. Add code to handle receiving RTM_NEWNEIGH and RTM_DELNEIGH messages from user space. This would replace SIOCSARP and SIOCDARP for interfaces with long hardware addresses. Dave, Alan, if I wrote a patch to do this would you accept it? (And following that increase MAX_ADDR_LEN?) (By the way the original patch I posted added code to the SIOCSIFHWADDR/SIOCGIFHWADDR handler to prevent a long hardware address from overrunning the ifr_data member that user space passed in) Thanks, Roland - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/