diff options
author | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2006-06-01 22:43:13 +0000 |
---|---|---|
committer | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2006-06-01 22:43:13 +0000 |
commit | 7cc0bcb3caa70f0c856cc5ff4119c1becd83708d (patch) | |
tree | b5d4382246fb77c4ddd64d4634ca2b4b5d0ea462 /usr.sbin/sasyncd/sasyncd.h | |
parent | fff1c1e24f6f58e55881a74c755dfe1e500b1ad0 (diff) |
Instead of polling the carp interface to detect a switch between MASTER and
BACKUP, listen to the routing socket for link change messages.
Based on a diff from nathanael at polymorpheous dot com.
ok moritz@
Diffstat (limited to 'usr.sbin/sasyncd/sasyncd.h')
-rw-r--r-- | usr.sbin/sasyncd/sasyncd.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/usr.sbin/sasyncd/sasyncd.h b/usr.sbin/sasyncd/sasyncd.h index c5d5ba6a798..f5ecd723831 100644 --- a/usr.sbin/sasyncd/sasyncd.h +++ b/usr.sbin/sasyncd/sasyncd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sasyncd.h,v 1.8 2005/05/28 01:07:52 ho Exp $ */ +/* $OpenBSD: sasyncd.h,v 1.9 2006/06/01 22:43:12 mcbride Exp $ */ /* * Copyright (c) 2005 Håkan Olsson. All rights reserved. @@ -46,12 +46,14 @@ struct cfgstate { u_int32_t flags; char *carp_ifname; - int carp_check_interval; + int carp_ifindex; char *sharedkey; int pfkey_socket; + int route_socket; + char *listen_on; in_port_t listen_port; sa_family_t listen_family; @@ -94,8 +96,12 @@ extern struct cfgstate cfgstate; int conf_init(int, char **); /* carp.c */ -void carp_check_state(void); -int carp_init(void); +int carp_init(void); +void carp_check_state(void); +void carp_update_state(enum RUNSTATE); +void carp_set_rfd(fd_set *); +void carp_read_message(fd_set *); +const char* carp_state_name(enum RUNSTATE); /* log.c */ /* |