Date: Wed, 15 Apr 1998 11:34:50 +0300 From: Ruslan Ermilov <ru@ucb.crimea.ua> To: freebsd-hackers@FreeBSD.ORG Subject: Re: Patch to /sys/net/if.c Message-ID: <19980415113450.51860@ucb.crimea.ua> 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_%2B0200?= References: <xzpsoqb9quy.fsf@hrotti.ifi.uio.no> <xzp67kbwkta.fsf@hrotti.ifi.uio.no>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980415113450.51860>