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 [email protected]
with "unsubscribe freebsd-hackers" in the body of the message