From owner-freebsd-hackers Wed Apr 15 01:35:42 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA04798 for freebsd-hackers-outgoing; Wed, 15 Apr 1998 01:35:42 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from relay.ucb.crimea.ua (relay.ucb.crimea.ua [194.93.177.113]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA04441 for ; Wed, 15 Apr 1998 08:35:00 GMT (envelope-from ru@ucb.crimea.ua) Received: (from ru@localhost) by relay.ucb.crimea.ua (8.8.8/8.8.8) id LAA25920; Wed, 15 Apr 1998 11:34:51 +0300 (EEST) (envelope-from ru) Message-ID: <19980415113450.51860@ucb.crimea.ua> Date: Wed, 15 Apr 1998 11:34:50 +0300 From: Ruslan Ermilov To: freebsd-hackers@FreeBSD.ORG Subject: Re: Patch to /sys/net/if.c Mail-Followup-To: freebsd-hackers@FreeBSD.ORG References: Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit X-Mailer: Mutt 0.89.1i In-Reply-To: =?koi8-r?Q?=3Cxzp67kbwkta=2Efsf=40hrotti=2Eifi=2Euio=2Eno=3E=3B_from_Dag?= =?koi8-r?Q?-Erling_Coidan_Sm=F8rgrav__on_Wed=2C_Apr_15=2C_1998_at_10=3A2?= =?koi8-r?Q?8=3A17AM_+0200?= Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Apr 15, 1998 at 10:28:17AM +0200, Dag-Erling Coidan Smørgrav wrote: > I wrote: > > --- if.c.orig Mon Jan 26 16:36:41 1998 > > +++ if.c Mon Jan 26 16:37:42 1998 > > @@ -697,6 +697,8 @@ > > if (--ifp->if_pcount > 0) > > return (0); > > ifp->if_flags &= ~IFF_PROMISC; > > + log(LOG_INFO, "%s%d: promiscuous mode disabled\n", > > + ifp->if_name, ifp->if_unit); > > } > > ifr.ifr_flags = ifp->if_flags; > > return ((*ifp->if_ioctl)(ifp, SIOCSIFFLAGS, (caddr_t)&ifr)); > > > > This will issue a log message when promiscuous mode is disabled. > > I'll commit this if nobody has a good reason not to. Of course, commit, it's very useful! -- Ruslan Ermilov System Administrator ru@ucb.crimea.ua United Commercial Bank +380-652-247647 Simferopol, Crimea 2426679 ICQ Network, UIN To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message