]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r333322: Keep CARP state as INIT when net.inet.carp.allow=0.
authormav <mav@FreeBSD.org>
Fri, 26 Apr 2019 22:18:22 +0000 (22:18 +0000)
committermav <mav@FreeBSD.org>
Fri, 26 Apr 2019 22:18:22 +0000 (22:18 +0000)
commit61820d8298b67337208c8e1cbf490e4d04ac414e
tree007c395fc8136f9d76de1f6d2a0afc4504ed156b
parentc133f844bd0f3889355fd73ac8f36f9e10712a5d
MFC r333322: Keep CARP state as INIT when net.inet.carp.allow=0.

Currently when net.inet.carp.allow=0 CARP state remains as MASTER, which is
not very useful (if there are other masters -- it can lead to split brain,
if there are none -- it makes no sense).  Having it as INIT makes it clear
that carp packets are disabled.

Sponsored by: iXsystems, Inc.
share/man/man4/carp.4
sys/netinet/ip_carp.c