Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107613869
D32759.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
532 B
Referenced Files
None
Subscribers
None
D32759.diff
View Options
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c
--- a/sys/netinet/ip_carp.c
+++ b/sys/netinet/ip_carp.c
@@ -304,7 +304,9 @@
#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
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 17, 4:46 PM (21 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15840717
Default Alt Text
D32759.diff (532 B)
Attached To
Mode
D32759: carp: deal with negative net.inet.carp.demotion
Attached
Detach File
Event Timeline
Log In to Comment