Created attachment 156929 [details]
Prevent pfsync/carp demotions when value is 0
pfSync generates demotion events even when net.pfsync.carp_demotion_factor is 0.
The same applies to the carp net.inet.carp.senderr_demotion_factor is 0.
This triggers unneeded events on the system which might impact availability of the carp ip.
Attached patch just skips these events in case the values are 0, meaning administratively disable the event.