Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 May 1999 16:24:12 +0200
From:      Sheldon Hearn <sheldonh@uunet.co.za>
To:        hackers@freebsd.org
Subject:   Logging "promiscuous mode disabled"
Message-ID:  <25385.927383052@axl.noc.iafrica.com>

next in thread | raw e-mail | index | archive | help

Hi folks,

Are there issues that make the following apparently innocuous change
to the handling of turning off promiscuous mode a bad idea?

It doesn't seem to me like it'd break anything, and I'd like to know
for sure when it's turned off -- it'd mean I don't have to count up the
number of "promiscous mode enabled" messages and make sure that that
number matches the number of applications I've run and subsequently
terminated.

Thanks,
Sheldon.

Index: if.c
===================================================================
RCS file: /home/ncvs/src/sys/net/if.c,v
retrieving revision 1.70
diff -u -d -r1.70 if.c
--- if.c	1999/04/28 11:37:32	1.70
+++ if.c	1999/05/22 14:18:45
@@ -828,6 +828,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;
 	error = (*ifp->if_ioctl)(ifp, SIOCSIFFLAGS, (caddr_t)&ifr);


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?25385.927383052>