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

« back to all changes in this revision

Viewing changes to keepalived/check/check_parser.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:
7
7
 *              data structure representation the conf file representing
8
8
 *              the loadbalanced server pool.
9
9
 *  
10
 
 * Version:     $Id: check_parser.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
 
10
 * Version:     $Id: check_parser.c,v 1.1.11 2005/03/01 01:22:13 acassen Exp $
11
11
 * 
12
12
 * Author:      Alexandre Cassen, <acassen@linux-vs.org>
13
13
 *              
21
21
 *              as published by the Free Software Foundation; either version
22
22
 *              2 of the License, or (at your option) any later version.
23
23
 *
24
 
 * Copyright (C) 2001-2004 Alexandre Cassen, <acassen@linux-vs.org>
 
24
 * Copyright (C) 2001-2005 Alexandre Cassen, <acassen@linux-vs.org>
25
25
 */
26
26
 
27
27
#include "check_parser.h"
33
33
#include "memory.h"
34
34
#include "utils.h"
35
35
 
36
 
/* global defs */
37
 
extern check_conf_data *check_data;
38
 
extern unsigned long mem_allocated;
39
 
 
40
36
/* SSL handlers */
41
37
static void
42
38
ssl_handler(vector strvec)
89
85
        virtual_server *vs = LIST_TAIL_DATA(check_data->vs);
90
86
        char *str = VECTOR_SLOT(strvec, 1);
91
87
        int size = sizeof (vs->sched);
 
88
        int str_len = strlen(str);
 
89
 
 
90
        if (size > str_len)
 
91
                size = str_len;
92
92
 
93
93
        memcpy(vs->sched, str, size);
94
94
}
128
128
        virtual_server *vs = LIST_TAIL_DATA(check_data->vs);
129
129
        char *str = VECTOR_SLOT(strvec, 1);
130
130
        int size = sizeof (vs->timeout_persistence);
 
131
        int str_len = strlen(str);
 
132
 
 
133
        if (size > str_len)
 
134
                size = str_len;
131
135
 
132
136
        memcpy(vs->timeout_persistence, str, size);
133
137
}
202
206
vector
203
207
check_init_keywords(void)
204
208
{
205
 
        keywords = vector_alloc();
206
 
 
207
209
        /* global definitions mapping */
208
210
        global_init_keywords();
209
211