summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>1999-08-30 11:55:30 +0000
committersheldonh <sheldonh@FreeBSD.org>1999-08-30 11:55:30 +0000
commitf8e888af9ef57e0aac751378b914b27ac6e84a10 (patch)
tree0ac13cdf43acb340ed55d0cafdab712820649780 /sys/net
parent1307fb8ba8cd6da326144ee57c6de0a3342cf4d5 (diff)
downloadFreeBSD-src-f8e888af9ef57e0aac751378b914b27ac6e84a10.zip
FreeBSD-src-f8e888af9ef57e0aac751378b914b27ac6e84a10.tar.gz
For every "promiscuous mode enabled" message printed for an interface,
print a matching "disabled" message when we drop out of promiscuous mode for that interface. Discussed on the freebsd-hackers mailing list.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index b5faac7..37d3008 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -832,6 +832,8 @@ ifpromisc(ifp, pswitch)
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);
OpenPOWER on IntegriCloud