Date: 15 Apr 1998 10:28:17 +0200 From: dag-erli@ifi.uio.no (Dag-Erling Coidan =?iso-8859-1?Q?Sm=F8rgrav?= ) To: freebsd-hackers@FreeBSD.ORG Subject: Re: Patch to /sys/net/if.c Message-ID: <xzp67kbwkta.fsf@hrotti.ifi.uio.no> References: <xzpsoqb9quy.fsf@hrotti.ifi.uio.no>
next in thread | previous in thread | raw e-mail | index | archive | help
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. -- fprintf(stderr, "I have a closed mind. It helps keeping the rain out.\n"); 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?xzp67kbwkta.fsf>