From owner-freebsd-current Thu Mar 1 9:35: 7 2001 Delivered-To: freebsd-current@freebsd.org Received: from pike.osd.bsdi.com (pike.osd.bsdi.com [204.216.28.222]) by hub.freebsd.org (Postfix) with ESMTP id 72F4E37B71A for ; Thu, 1 Mar 2001 09:35:05 -0800 (PST) (envelope-from jhb@foo.osd.bsdi.com) Received: from foo.osd.bsdi.com (root@foo.osd.bsdi.com [204.216.28.137]) by pike.osd.bsdi.com (8.11.1/8.9.3) with ESMTP id f21HYtK09137; Thu, 1 Mar 2001 09:34:55 -0800 (PST) (envelope-from jhb@foo.osd.bsdi.com) Received: (from jhb@localhost) by foo.osd.bsdi.com (8.11.1/8.11.1) id f21HXk789001; Thu, 1 Mar 2001 09:33:46 -0800 (PST) (envelope-from jhb) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <3A9E51AF.AEBE999E@gorean.org> Date: Thu, 01 Mar 2001 09:33:45 -0800 (PST) Organization: BSD, Inc. From: John Baldwin To: Doug Barton Subject: RE: New entropy harvesting sysctl's enabled in rc Cc: freebsd-current@FreeBSD.ORG Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 01-Mar-01 Doug Barton wrote: > I was unable to test the ppp bits, but I've every reason to believe that > this will work. Comments and suggestions are welcome. The goal is to turn > on the appropriate harvesters for ethernet, and/or ppp/slip/tun based on > the presence of a configured device of that nature. So, the ethernet bits > check to see if there is an ethernet card configured, and turns on that > harvester if so. The same should be true for the ppp harvester, based on > the suggestions I received for detecting whether a tun device is or will be > in use. Erm, it doesn't hurt to turn the sysctl on if no device is present, so why not just turn it on w/o bothering to check? If there's no ether device then having the sysctl on or off doesn't change anything except that if one plugs in an ether device later or kldloads a driver later entropy won't be collected, where as if you just turn the sysctl on if network entropy is enabled regardless of what devices are configured it will all just work and DTRT. -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.Baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message