Date: Wed, 1 Jun 2016 15:08:27 +0000 (UTC) From: Nick Hibma <n_hibma@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r301129 - stable/10/sys/net Message-ID: <201606011508.u51F8RF1099956@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: n_hibma Date: Wed Jun 1 15:08:27 2016 New Revision: 301129 URL: https://svnweb.freebsd.org/changeset/base/301129 Log: MFC 300670 (slightly adapted for 10-STABLE): Change net.link.log_promisc_mode_change to a read-only tunable. PR: 166255 Submitted by: eugen.grosbein.net Obtained from: hselasky Modified: stable/10/sys/net/if.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/net/if.c ============================================================================== --- stable/10/sys/net/if.c Wed Jun 1 14:57:53 2016 (r301128) +++ stable/10/sys/net/if.c Wed Jun 1 15:08:27 2016 (r301129) @@ -116,7 +116,8 @@ SYSCTL_INT(_net_link, OID_AUTO, log_link /* Log promiscuous mode change events */ static int log_promisc_mode_change = 1; -SYSCTL_INT(_net_link, OID_AUTO, log_promisc_mode_change, CTLFLAG_RW, +TUNABLE_INT("net.link.log_promisc_mode_change", &log_promisc_mode_change); +SYSCTL_INT(_net_link, OID_AUTO, log_promisc_mode_change, CTLFLAG_RDTUN, &log_promisc_mode_change, 1, "log promiscuous mode change events");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606011508.u51F8RF1099956>