Page MenuHomeFreeBSD

Keep CARP state as INIT when net.inet.carp.allow=0
ClosedPublic

Authored by wg on Feb 23 2018, 1:02 AM.
Tags
None
Referenced Files
F105829268: D14477.diff
Sat, Dec 21, 8:42 AM
Unknown Object (File)
Sun, Dec 15, 10:11 PM
Unknown Object (File)
Sun, Dec 15, 10:08 PM
Unknown Object (File)
Sat, Dec 14, 8:12 AM
Unknown Object (File)
Mon, Nov 25, 5:37 AM
Unknown Object (File)
Nov 5 2024, 10:47 AM
Unknown Object (File)
Oct 27 2024, 1:31 AM
Unknown Object (File)
Oct 22 2024, 2:26 PM
Subscribers

Details

Summary

Currently when net.inet.carp.allow=0 CARP state remains as MASTER
which is not very useful. Having it as INIT makes it clear carp packets are disabled.

With the help of Alexander Motin we came up with the following patch.

Let me know what you think, thanks.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

wg edited the summary of this revision. (Show Details)

Removing needless sx lock

Remove unneeded condition and missing space after if

After all the changes I think it would be a good addition. Existing allow sysctl is useless IMO, while this change adds sense to it.

This revision is now accepted and ready to land.Feb 23 2018, 3:07 PM
This revision was automatically updated to reflect the committed changes.