From owner-freebsd-hardware@FreeBSD.ORG Thu Apr 18 04:55:08 2013 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id AACBF3EE; Thu, 18 Apr 2013 04:55:08 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from mail-ie0-x22d.google.com (mail-ie0-x22d.google.com [IPv6:2607:f8b0:4001:c03::22d]) by mx1.freebsd.org (Postfix) with ESMTP id 7785EA68; Thu, 18 Apr 2013 04:55:08 +0000 (UTC) Received: by mail-ie0-f173.google.com with SMTP id k5so2820856iea.18 for ; Wed, 17 Apr 2013 21:55:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=76FX2L3sai35IuqA6aXzIvIij1D6A2Qoud/nICSaSeE=; b=f53SX2tkMQhqAGx9OkzYZJLaycOphg7kBD/DeSMM6OfWTu9bQexTjpFDjhEAJeWgMq LXOkhduVWh4j+m9CmzCbNPV4uasTSTRYDWOxwrlMfquql5lTC8SZu+MkL8z4DKOa4pa0 iTICVUCFIRdhgNhpw458AECiRe0D6bxFqiOIoXQROb7dqN6HrkzIogwEch8PTG1LT9Xd coPfuN99ooejsckOPHdtOKg3yyfPL/fDL0FLpFVZWnHvMMwekrqGSDLNm9LyLEu0+M1a MfTn7xa4KADF8weoL4xQaJz8KhdOO7mUQbTKhZ/YZhczScpXboSonCAGtR1k0mzca/sb FlYQ== MIME-Version: 1.0 X-Received: by 10.50.20.69 with SMTP id l5mr6029435ige.106.1366260908125; Wed, 17 Apr 2013 21:55:08 -0700 (PDT) Received: by 10.50.57.84 with HTTP; Wed, 17 Apr 2013 21:55:07 -0700 (PDT) In-Reply-To: <20130417091408.GG3480@vpn.offrom.nl> References: <20130416135621.GE3286@vpn.offrom.nl> <20130416154423.GD98205@lor.one-eyed-alien.net> <20130417091408.GG3480@vpn.offrom.nl> Date: Wed, 17 Apr 2013 23:55:07 -0500 Message-ID: Subject: Re: control of order of inet devices From: Scot Hetzel To: Willy@offermans.rompen.nl Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD Current , freebsd-hardware@freebsd.org X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Apr 2013 04:55:08 -0000 On Wed, Apr 17, 2013 at 4:14 AM, Willy Offermans wrote: > Hello Brooks, > > On Tue, Apr 16, 2013 at 10:44:23AM -0500, Brooks Davis wrote: > > On Tue, Apr 16, 2013 at 03:56:21PM +0200, Willy Offermans wrote: > > > Dear FreeBSD friends, > > > > > > How can I control the order of the network devices in FreeBSD. > > > > > > For example, the command ifconfig lists the network devices: > > > > > > pcn0: flags=8802 metric 0 mtu 1500 > > > options=80000 > > > ether 00:0c:46:ea:2b:32 > > > nd6 options=29 > > > media: Ethernet 100baseFX > > > status: no carrier > > > rl0: flags=8843 metric 0 mtu > 1500 > > > options=2008 > > > ether 00:11:6b:99:7c:5a > > > inet XXX.XXX.24.4 netmask 0xffffff80 broadcast 137.226.24.127 > > > inet6 fe80::211:6bff:fe99:7c5a%rl0 prefixlen 64 scopeid 0x4 > > > nd6 options=29 > > > media: Ethernet autoselect (100baseTX ) > > > status: active > > > nfe0: flags=8802 metric 0 mtu 1500 > > > options=82008 > > > ether 00:1b:fc:df:a1:33 > > > nd6 options=29 > > > media: Ethernet autoselect (none) > > > status: no carrier > > > plip0: flags=8810 metric 0 mtu 1500 > > > nd6 options=29 > > > lo0: flags=8049 metric 0 mtu 16384 > > > options=600003 > > > inet6 ::1 prefixlen 128 > > > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7 > > > inet 127.0.0.1 netmask 0xff000000 > > > nd6 options=21 > > > tap0: flags=8843 metric 0 mtu > 1500 > > > options=80000 > > > ether 00:22:19:10:8d:bb > > > inet XXX.XXX.24.19 netmask 0xffffffff broadcast 137.226.24.19 > > > inet6 fe80::2bd:83ff:fe68:7200%tap0 prefixlen 64 scopeid 0x8 > > > nd6 options=21 > > > media: Ethernet autoselect > > > status: no carrier > > > > > > pcn0 being first. However, I would like tap0 being first and of course > > > without any output ordering trick. > > > > The order is dictated by the order the drivers are probed by the kernel. > > When the devices are created they are added to a linked list. There is > > no practical way to control the order and it has little or no effect. > > > > -- Brooks > > 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. > What information did you give them when you registered that software? Was it just the MAC address of tap0? If it was just the MAC address of tap0, you could try changing the MAC address of pcn0 to the MAC address of tap0: echo 'ifconfig pcn0 ether 00:22:19:10:8d:bb' >/etc/start_if.pcn0 echo 'ifconfig tap0 ether 00:22:19:10:8d:bc' >/etc/start_if.tap0