From owner-freebsd-hackers Wed Aug 28 21: 0:25 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BB0FD37B421 for ; Wed, 28 Aug 2002 21:00:17 -0700 (PDT) Received: from albatross.prod.itd.earthlink.net (albatross.mail.pas.earthlink.net [207.217.120.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD11343E65 for ; Wed, 28 Aug 2002 21:00:16 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from pool0190.cvx21-bradley.dialup.earthlink.net ([209.179.192.190] helo=mindspring.com) by albatross.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 17kGTf-0002Gq-00; Wed, 28 Aug 2002 21:00:15 -0700 Message-ID: <3D6D9B17.9BB7A029@mindspring.com> Date: Wed, 28 Aug 2002 20:55:03 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Julien Benoist Cc: freebsd-hackers@freebsd.org Subject: Re: toggling promiscuous mode logging on NICs References: <200208290542.09749.julienbenoist@altern.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Julien Benoist wrote: > This is a patch allowing to control kernel logging of promiscuous mode changes > on network interfaces through sysctl (enabled by default) : > kern.log_promisc=1 > > I dont know if this mib should be placed somewhere else, nor if the feature > itself could interest anyone... Patch attached anyway. In a general sense, it's probably abut time to add a class parameter or two (one a bitmap, the other a bitmap within that bitmap) to all of the kernel display data. That would let you block all messages of a class, without the need to introduce per-printf sysctl's. This sort of goes with PHK's idea that the console code needs a rethink. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message