From owner-freebsd-hackers Wed Apr 15 01:28:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA02963 for freebsd-hackers-outgoing; Wed, 15 Apr 1998 01:28:28 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA02955 for ; Wed, 15 Apr 1998 08:28:20 GMT (envelope-from dag-erli@ifi.uio.no) Received: from hrotti.ifi.uio.no (2602@hrotti.ifi.uio.no [129.240.64.15]) by ifi.uio.no (8.8.8/8.8.7/ifi0.2) with ESMTP id KAA02621 for ; Wed, 15 Apr 1998 10:28:18 +0200 (MET DST) Received: (from dag-erli@localhost) by hrotti.ifi.uio.no ; Wed, 15 Apr 1998 10:28:17 +0200 (MET DST) Mime-Version: 1.0 To: freebsd-hackers@FreeBSD.ORG Subject: Re: Patch to /sys/net/if.c References: Organization: Gutteklubben Terrasse / KRST / PUMS / YASMW X-url: http://www.stud.ifi.uio.no/~dag-erli/ X-Stop-Spam: http://www.cauce.org From: dag-erli@ifi.uio.no (Dag-Erling Coidan =?iso-8859-1?Q?Sm=F8rgrav?= ) Date: 15 Apr 1998 10:28:17 +0200 Message-ID: Lines: 19 X-Mailer: Gnus v5.5/Emacs 19.34 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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