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)
Sat, Dec 21, 12:07 PM
Unknown Object (File)
Sat, Dec 21, 10:38 AM
Unknown Object (File)
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)
Nov 25 2024, 5:37 AM
Unknown Object (File)
Nov 5 2024, 10:47 AM
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 Passed
Unit
No Test Coverage
Build Status
Buildable 15215
Build 15287: arc lint + arc unit

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.