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
Unknown Object (File)
Wed, Jan 29, 5:46 PM
Unknown Object (File)
Sun, Jan 26, 1:59 PM
Unknown Object (File)
Sun, Jan 26, 7:46 AM
Unknown Object (File)
Thu, Jan 23, 10:39 AM
Unknown Object (File)
Jan 21 2025, 4:37 PM
Unknown Object (File)
Jan 20 2025, 7:32 AM
Unknown Object (File)
Jan 17 2025, 4:49 PM
Unknown Object (File)
Jan 12 2025, 9:25 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.