Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146273983
D32759.id97775.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
565 B
Referenced Files
None
Subscribers
None
D32759.id97775.diff
View Options
Index: sys/netinet/ip_carp.c
===================================================================
--- sys/netinet/ip_carp.c
+++ 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
Mon, Mar 2, 7:46 AM (2 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29148594
Default Alt Text
D32759.id97775.diff (565 B)
Attached To
Mode
D32759: carp: deal with negative net.inet.carp.demotion
Attached
Detach File
Event Timeline
Log In to Comment