Re: control of order of inet devices

看板FB_current作者時間12年前 (2013/04/27 14:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串11/13 (看更多)
--6sX45UoQRIJXqkqR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 prog= ram > > which checks its licence against the first inet device. Since I have ad= ded > > 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. >=20 > Load old inet devices like normal, in loader.conf. Then load the new=20 > device driver before networking, after rc's started. If it'd because of= =20 > probe order, then you might just have to control the probe order the=20 > hard way. If the program's calling ifconfig itself, you could write a=20 > wrapper to resort the output. And call a lawyer, getting a new ethernet= =20 > 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 --6sX45UoQRIJXqkqR Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iD8DBQFRbv+WXY6L6fI4GtQRAosYAKCtBpxq6brNhJv24VJtxOQN1haZ/wCgoBPG N3JUS3PY3pDTc9qHFRT7LAc= =zx/1 -----END PGP SIGNATURE----- --6sX45UoQRIJXqkqR--
文章代碼(AID): #1HUscixE (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1HUscixE (FB_current)