summaryrefslogtreecommitdiffstats
path: root/src/providers/fail_over.c
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2011-03-09 13:36:04 +0100
committerStephen Gallagher <sgallagh@redhat.com>2011-03-09 14:14:36 -0500
commit5f4b4fb5a26ddcfa578a368688e81b36b5612d06 (patch)
tree8b074a22d506428649c38752436122eef29ff4bb /src/providers/fail_over.c
parentd0d3497c10a02e8489198dc3e1edc621bfac0c6d (diff)
downloadsssd-5f4b4fb5a26ddcfa578a368688e81b36b5612d06.tar.gz
sssd-5f4b4fb5a26ddcfa578a368688e81b36b5612d06.tar.xz
sssd-5f4b4fb5a26ddcfa578a368688e81b36b5612d06.zip
Run callbacks if server IP changes
Diffstat (limited to 'src/providers/fail_over.c')
-rw-r--r--src/providers/fail_over.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/providers/fail_over.c b/src/providers/fail_over.c
index 92089226b..4967e195c 100644
--- a/src/providers/fail_over.c
+++ b/src/providers/fail_over.c
@@ -1386,6 +1386,15 @@ fo_get_server_hostent(struct fo_server *server)
return server->common->hostent;
}
+time_t
+fo_get_server_hostname_last_change(struct fo_server *server)
+{
+ if (server->common == NULL) {
+ return 0;
+ }
+ return server->common->last_status_change.tv_sec;
+}
+
void fo_reset_services(struct fo_ctx *fo_ctx)
{
struct fo_service *service;