FreeBSD Bugzilla – Attachment 229122 Details for
Bug 259528
[carp] Backup node becomes second active master when master have some negative demotion values
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
carp-negative-demote.patch
file_259528.txt (text/plain), 763 bytes, created by
Marius Halden
on 2021-10-29 13:04:38 UTC
(
hide
)
Description:
carp-negative-demote.patch
Filename:
MIME Type:
Creator:
Marius Halden
Created:
2021-10-29 13:04:38 UTC
Size:
763 bytes
patch
obsolete
>--- > sys/netinet/ip_carp.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c >index 9a551a70c3a..c4043a4be21 100644 >--- a/sys/netinet/ip_carp.c >+++ b/sys/netinet/ip_carp.c >@@ -304,7 +304,9 @@ SYSCTL_VNET_PCPUSTAT(_net_inet_carp, OID_AUTO, stats, struct carpstats, > > #define DEMOTE_ADVSKEW(sc) \ > (((sc)->sc_advskew + V_carp_demotion > CARP_MAXSKEW) ? \ >- CARP_MAXSKEW : ((sc)->sc_advskew + V_carp_demotion)) >+ CARP_MAXSKEW : \ >+ (((sc)->sc_advskew + V_carp_demotion < 0) ? \ >+ 0 : ((sc)->sc_advskew + V_carp_demotion))) > > static void carp_input_c(struct mbuf *, struct carp_header *, sa_family_t); > static struct carp_softc >-- >2.32.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 259528
:
229121
| 229122