1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-22 15:47:37 +00:00

The net.link.ether.bridge.enable sysctl MIB variable enables bridge

functionality by setting to a non-zero value. This is an integer, but
is treated as a boolean by the code, so clamp it to a boolean value
when set so as to avoid unnecessary bridge reinitialization if it's
changed to another value.

PR:		kern/61174
Requested by:	Bruce Cran
This commit is contained in:
Bruce M Simpson 2004-07-04 15:53:28 +00:00
parent 69f9d7b13f
commit 4c9e94d42c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=131571

View File

@ -565,6 +565,7 @@ sysctl_bdg(SYSCTL_HANDLER_ARGS)
int error;
error = sysctl_handle_int(oidp, &enable, 0, req);
enable = (enable) ? 1 : 0;
BDG_LOCK();
if (enable != do_bridge) {
do_bridge = enable;