summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_carp.c
diff options
context:
space:
mode:
authorJoel Knight <joel@cvs.openbsd.org>2007-09-03 06:10:55 +0000
committerJoel Knight <joel@cvs.openbsd.org>2007-09-03 06:10:55 +0000
commit2b17758a78200037a7a799da39915fd208321174 (patch)
tree2e46ba8ac8bc302c3d0e2df653eee7c31508f052 /sys/netinet/ip_carp.c
parent8a9da53e94decc986720f2a9bd7e6953d6cc8a49 (diff)
Make use of the carp preempt counter to signal number of transitions of
any carp group to master status. ok dhartmei@
Diffstat (limited to 'sys/netinet/ip_carp.c')
-rw-r--r--sys/netinet/ip_carp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c
index d7d1cbd798c..ab2e8a5793d 100644
--- a/sys/netinet/ip_carp.c
+++ b/sys/netinet/ip_carp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_carp.c,v 1.147 2007/06/23 16:15:26 reyk Exp $ */
+/* $OpenBSD: ip_carp.c,v 1.148 2007/09/03 06:10:54 joel Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff. All rights reserved.
@@ -1598,6 +1598,7 @@ carp_master_down(void *v)
#endif /* INET6 */
carp_setrun(sc, 0);
carp_setroute(sc, RTM_ADD);
+ carpstats.carps_preempt++;
break;
}
}