Date: 26 Jan 1998 16:50:29 +0100 From: dag-erli@ifi.uio.no (Dag-Erling Coidan Smørgrav) To: hackers@FreeBSD.ORG Subject: Patch to /sys/net/if.c Message-ID: <xzpsoqb9quy.fsf@hrotti.ifi.uio.no>
next in thread | raw e-mail | index | archive | help
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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpsoqb9quy.fsf>