~ubuntu-branches/ubuntu/vivid/keepalived/vivid

« back to all changes in this revision

Viewing changes to keepalived/include/check_smtp.h

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2011-10-25 16:10:58 UTC
  • mfrom: (3.1.7 sid)
  • Revision ID: package-import@ubuntu.com-20111025161058-bgqn5elt0xo1tq0a
Tags: 1:1.2.2-1ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - debian/rules: DEB_UPDATE_RCD_PARAMS := explicit init start/stop
    parameters (don't stop at 0 and 6)
  - debian/init.d: init script header adapted to stop rule
  - debian/keepalived.postinst: Remove shutdown and reboot links
* Build with libnl3, thanks to a patch from Marc - A. Dahlhaus.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *              as published by the Free Software Foundation; either version
19
19
 *              2 of the License, or (at your option) any later version.
20
20
 *
21
 
 * Copyright (C) 2001-2010 Alexandre Cassen, <acassen@freebox.fr>
 
21
 * Copyright (C) 2001-2011 Alexandre Cassen, <acassen@linux-vs.org>
22
22
 */
23
23
 
24
24
#ifndef _CHECK_SMTP_H
46
46
 
47
47
/* Per host configuration structure  */
48
48
typedef struct _smtp_host {
49
 
        uint16_t port;
50
 
        uint32_t ip;
51
 
        uint32_t bindto;
52
 
} smtp_host;
 
49
        struct sockaddr_storage dst;
 
50
        struct sockaddr_storage bindto;
 
51
} smtp_host_t;
53
52
 
54
53
/* Checker argument structure  */
55
54
typedef struct _smtp_checker {
60
59
        int retry;
61
60
        int attempts;
62
61
        int  host_ctr;
63
 
        smtp_host *host_ptr;
 
62
        smtp_host_t *host_ptr;
64
63
 
65
64
        /* data buffer */
66
65
        char buff[SMTP_BUFF_MAX];
67
66
        int buff_ctr;
68
 
        int (*buff_cb) (struct _thread *);
 
67
        int (*buff_cb) (thread_t *);
69
68
 
70
69
        int state;
71
70
 
72
71
        /* list holding the host config data */
73
72
        list host;
74
 
} smtp_checker;
 
73
} smtp_checker_t;
75
74
 
76
75
/* Prototypes defs */
77
76
extern void install_smtp_check_keyword(void);