From owner-freebsd-current@FreeBSD.ORG Mon Aug 5 09:17:16 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id BC2116C1; Mon, 5 Aug 2013 09:17:16 +0000 (UTC) (envelope-from willy@Offermans.Rompen.nl) Received: from cpsmtpb-ews08.kpnxchange.com (cpsmtpb-ews08.kpnxchange.com [213.75.39.13]) by mx1.freebsd.org (Postfix) with ESMTP id 2C0392110; Mon, 5 Aug 2013 09:17:15 +0000 (UTC) Received: from cpsps-ews22.kpnxchange.com ([10.94.84.188]) by cpsmtpb-ews08.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Mon, 5 Aug 2013 11:16:05 +0200 Received: from CPSMTPM-CMT103.kpnxchange.com ([195.121.3.19]) by cpsps-ews22.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Mon, 5 Aug 2013 11:16:05 +0200 Received: from sun.offermans.rompen.nl ([77.170.60.162]) by CPSMTPM-CMT103.kpnxchange.com with Microsoft SMTPSVC(7.0.6002.18264); Mon, 5 Aug 2013 11:16:04 +0200 Received: from squid (squid.vpn.offrom.nl [10.168.0.72]) by sun.offermans.rompen.nl (8.14.5/8.14.4) with ESMTP id r759G4F9070525; Mon, 5 Aug 2013 11:16:04 +0200 (CEST) (envelope-from willy@vpn.offrom.nl) Received: from willy by squid with local (Exim 4.72) (envelope-from ) id 1V6GtX-0005zC-I3; Mon, 05 Aug 2013 11:16:03 +0200 Date: Mon, 5 Aug 2013 11:16:03 +0200 From: Willy Offermans To: Brooks Davis Subject: Re: control of order of inet devices Message-ID: <20130805091603.GB4557@vpn.offrom.nl> References: <20130416135621.GE3286@vpn.offrom.nl> <20130416154423.GD98205@lor.one-eyed-alien.net> <20130417091408.GG3480@vpn.offrom.nl> <516E6B10.2080000@gmail.com> <20130417200127.GB30583@lor.one-eyed-alien.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130417200127.GB30583@lor.one-eyed-alien.net> User-Agent: Mutt/1.5.20 (2009-06-14) X-OriginalArrivalTime: 05 Aug 2013 09:16:05.0116 (UTC) FILETIME=[698EABC0:01CE91BC] X-RcptDomain: freebsd.org Cc: Joshua Isom , freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Willy@Offermans.Rompen.nl List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Aug 2013 09:17:16 -0000 Hello Brooks, On Wed, Apr 17, 2013 at 03:01:27PM -0500, Brooks Davis wrote: > On Wed, Apr 17, 2013 at 04:27:44AM -0500, Joshua Isom wrote: > > On 4/17/2013 4:14 AM, Willy Offermans wrote: > > > This is what I read in some of the articles or handbook as well. Can I > > > reorder this linked list? Can I control the order by creating the kernel > > > and reordering the inclusion of the device drivers? > > > > > > I am aware that the request sounds silly, but I have a third party program > > > which checks its licence against the first inet device. Since I have added > > > a new inet controller, the sequence has changed. Of course I ask for a new > > > licence, but they want to charge me for that and I do not see any reason > > > for that. > > > > Load old inet devices like normal, in loader.conf. Then load the new > > device driver before networking, after rc's started. If it'd because of > > probe order, then you might just have to control the probe order the > > hard way. If the program's calling ifconfig itself, you could write a > > wrapper to resort the output. And call a lawyer, getting a new ethernet > > card shouldn't void a license. > > It wouldn't be particularly hard to influence the sorting of the list if > you're willing to modify the if_attach_internal() function and always > insert devices with that name at the beginning. It just doesn't seem > very general purpose so I'd have a hard time considering including it. > > -- Brooks I see und subscribe to your point. However it is not clear to me how the order is established. Maybe if I know that, I can influence the order. Can you comment on that? Where can I find the code for the if_attach_internal() function? Digging into the code might also elucidate a lot of things, so I need to ask less :). Maybe I will change the code a bit to suite my wishes. If that is the case, I will inform the list and show the code. Maybe it is useful. -- Met vriendelijke groeten, With kind regards, Mit freundlichen Gruessen, De jrus wah, Wiel ************************************* W.K. Offermans Home: +31 45 544 49 44 Mobile: +31 681 15 87 68 e-mail: Willy@Offermans.Rompen.nl