~ubuntu-branches/ubuntu/trusty/keepalived/trusty

« back to all changes in this revision

Viewing changes to keepalived/check/check_data.c

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Wirt
  • Date: 2005-04-29 23:22:40 UTC
  • mfrom: (1.1.1 upstream) (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050429232240-a8m3jtpi3cvuyyy2
Tags: 1.1.11-3
Added a warning about sarge kernels to README.Debian and 
the package description 

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 *
6
6
 * Part:        Healthcheckers dynamic data structure definition.
7
7
 *
8
 
 * Version:     $Id: check_data.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
 
8
 * Version:     $Id: check_data.c,v 1.1.11 2005/03/01 01:22:13 acassen Exp $
9
9
 *
10
10
 * Author:      Alexandre Cassen, <acassen@linux-vs.org>
11
11
 *
19
19
 *              as published by the Free Software Foundation; either version
20
20
 *              2 of the License, or (at your option) any later version.
21
21
 *
22
 
 * Copyright (C) 2001-2004 Alexandre Cassen, <acassen@linux-vs.org>
 
22
 * Copyright (C) 2001-2005 Alexandre Cassen, <acassen@linux-vs.org>
23
23
 */
24
24
 
25
25
#include "check_data.h"
27
27
#include "memory.h"
28
28
#include "utils.h"
29
29
 
30
 
/* Externals vars */
31
 
extern check_conf_data *check_data;
 
30
/* global vars */
 
31
check_conf_data *check_data = NULL;
 
32
check_conf_data *old_check_data = NULL;
32
33
 
33
34
/* SSL facility functions */
34
35
SSL_DATA *
326
327
}
327
328
 
328
329
void
329
 
free_check_data(check_conf_data *check_data)
 
330
free_check_data(check_conf_data *check_data_obj)
330
331
{
331
 
        free_list(check_data->vs);
332
 
        free_list(check_data->vs_group);
333
 
        FREE(check_data);
 
332
        free_list(check_data_obj->vs);
 
333
        free_list(check_data_obj->vs_group);
 
334
        FREE(check_data_obj);
334
335
}
335
336
 
336
337
void
337
 
dump_check_data(check_conf_data *check_data)
 
338
dump_check_data(check_conf_data *check_data_obj)
338
339
{
339
 
        if (check_data->ssl) {
 
340
        if (check_data_obj->ssl) {
340
341
                syslog(LOG_INFO, "------< SSL definitions >------");
341
342
                dump_ssl();
342
343
        }
343
 
        if (!LIST_ISEMPTY(check_data->vs)) {
 
344
        if (!LIST_ISEMPTY(check_data_obj->vs)) {
344
345
                syslog(LOG_INFO, "------< LVS Topology >------");
345
346
                syslog(LOG_INFO, " System is compiled with LVS v%d.%d.%d",
346
347
                       NVERSION(IP_VS_VERSION_CODE));
347
 
                if (!LIST_ISEMPTY(check_data->vs_group))
348
 
                        dump_list(check_data->vs_group);
349
 
                dump_list(check_data->vs);
 
348
                if (!LIST_ISEMPTY(check_data_obj->vs_group))
 
349
                        dump_list(check_data_obj->vs_group);
 
350
                dump_list(check_data_obj->vs);
350
351
        }
351
352
        dump_checkers_queue();
352
353
}