From owner-freebsd-hackers Mon Jan 26 08:11:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA08042 for hackers-outgoing; Mon, 26 Jan 1998 08:11:47 -0800 (PST) (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 IAA08026 for ; Mon, 26 Jan 1998 08:11:31 -0800 (PST) (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 QAA12239 for ; Mon, 26 Jan 1998 16:50:31 +0100 (MET) Received: (from dag-erli@localhost) by hrotti.ifi.uio.no ; Mon, 26 Jan 1998 16:50:30 +0100 (MET) To: hackers@FreeBSD.ORG Subject: Patch to /sys/net/if.c Organization: Gutteklubben Terrasse X-url: http://www.ifi.uio.no/~dag-erli/ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit From: dag-erli@ifi.uio.no (Dag-Erling Coidan Smørgrav) Date: 26 Jan 1998 16:50:29 +0100 Message-ID: Lines: 19 X-Mailer: Gnus v5.5/Emacs 19.34 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk I (humbly) suggest the following patch to /usr/src/sys/net/if.c: --- 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. -- * Finrod (INTJ) * Unix weenie * dag-erli@ifi.uio.no * cellular +47-92835919 * RFC1123: "Be liberal in what you accept, and conservative in what you send"