summaryrefslogtreecommitdiff
path: root/switchctl.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2014-03-20 19:12:23 (GMT)
committerChristian Pointner <equinox@helsinki.at>2014-03-20 19:12:23 (GMT)
commit4ad11db8c58192cbff042dd393ecf949895f1cef (patch)
treef3df67ea7105c831fc7212cdd44250003c9aa0a1 /switchctl.c
parentccc2f5d4a9031c632c063be528eeee776766dde3 (diff)
added client type for heartbeat master and standby
Diffstat (limited to 'switchctl.c')
-rw-r--r--switchctl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/switchctl.c b/switchctl.c
index f193450..4d4b003 100644
--- a/switchctl.c
+++ b/switchctl.c
@@ -356,8 +356,10 @@ void process_cmd_type(const char* param, int fd, client_t* client_lst)
client->type = STANDBY;
client->gpi_listener = 1;
}
- else if(!strncmp(param, "heartbeat", 9))
- client->type = HEARTBEAT;
+ else if(!strncmp(param, "master_hb", 9))
+ client->type = MASTER_HB;
+ else if(!strncmp(param, "standby_hb", 10))
+ client->type = STANDBY_HB;
else {
log_printf(DEBUG, "unkown client type '%s'", param);
send_response(fd, "EEE: type: unknown client type");