keepalived-1.1.7 v1.1.7
authorAlexandre Cassen <acassen@freebox.fr>
Mon, 5 Apr 2004 03:36:43 +0000 (05:36 +0200)
committerAlexandre Cassen <acassen@freebox.fr>
Mon, 28 Sep 2009 08:58:59 +0000 (10:58 +0200)
* keepalived-1.1.7 released.
* Jacob Rief, <jacob.rief@tiscover.com> added target tarball into
  root Makefile to facilitate packaging (rpm & tarball).
* Jacob Rief, <jacob.rief@tiscover.com> and I unified version
  handling. Now only the root file VERSION is used by configure
  to add VERSION_STRING via config.h.in. Added VERSION_DATE
  included into the VERSION_STRING that reflect the building
  date into the version banner.
* Andres Salomon, <dilinger@voxel.net> wrote the genhash manpage.
* VRRP : Added ipvs_start() and ipvs_stop() calls during vrrp child
  start and stop stage.
* Added some assertion test in memory framework to not allocate
  bucket if no more place. This option is only used if compiled
  with debug flags.
* Some cosmetics patch in Makefiles and autoconf script.

102 files changed:
ChangeLog
Makefile.in
VERSION
configure
configure.in
doc/man/man8/genhash.8 [new file with mode: 0644]
doc/samples/keepalived.conf.real_server_group [deleted file]
genhash/Makefile.in
keepalived.spec.in [moved from keepalived.spec with 98% similarity]
keepalived/Makefile.in
keepalived/check/check_api.c
keepalived/check/check_daemon.c
keepalived/check/check_data.c
keepalived/check/check_http.c
keepalived/check/check_misc.c
keepalived/check/check_parser.c
keepalived/check/check_ssl.c
keepalived/check/check_tcp.c
keepalived/check/ipfwwrapper.c
keepalived/check/ipvswrapper.c
keepalived/check/ipwrapper.c
keepalived/core/Makefile.in
keepalived/core/daemon.c
keepalived/core/global_data.c
keepalived/core/global_parser.c
keepalived/core/layer4.c
keepalived/core/main.c
keepalived/core/pidfile.c
keepalived/core/smtp.c
keepalived/include/check_api.h
keepalived/include/check_daemon.h
keepalived/include/check_data.h
keepalived/include/check_http.h
keepalived/include/check_misc.h
keepalived/include/check_parser.h
keepalived/include/check_ssl.h
keepalived/include/check_tcp.h
keepalived/include/config.h.in [new file with mode: 0644]
keepalived/include/daemon.h
keepalived/include/global_data.h
keepalived/include/global_parser.h
keepalived/include/ipfwwrapper.h
keepalived/include/ipvswrapper.h
keepalived/include/ipwrapper.h
keepalived/include/layer4.h
keepalived/include/main.h
keepalived/include/pidfile.h
keepalived/include/smtp.h
keepalived/include/vrrp.h
keepalived/include/vrrp_arp.h
keepalived/include/vrrp_daemon.h
keepalived/include/vrrp_data.h
keepalived/include/vrrp_if.h
keepalived/include/vrrp_index.h
keepalived/include/vrrp_ipaddress.h
keepalived/include/vrrp_iproute.h
keepalived/include/vrrp_ipsecah.h
keepalived/include/vrrp_netlink.h
keepalived/include/vrrp_notify.h
keepalived/include/vrrp_parser.h
keepalived/include/vrrp_scheduler.h
keepalived/include/vrrp_sync.h
keepalived/include/vrrp_track.h
keepalived/libipfwc/Makefile [deleted file]
keepalived/libipvs-2.4/Makefile [deleted file]
keepalived/libipvs-2.6/Makefile.in
keepalived/vrrp/Makefile.in
keepalived/vrrp/vrrp.c
keepalived/vrrp/vrrp_arp.c
keepalived/vrrp/vrrp_daemon.c
keepalived/vrrp/vrrp_data.c
keepalived/vrrp/vrrp_if.c
keepalived/vrrp/vrrp_index.c
keepalived/vrrp/vrrp_ipaddress.c
keepalived/vrrp/vrrp_iproute.c
keepalived/vrrp/vrrp_ipsecah.c
keepalived/vrrp/vrrp_netlink.c
keepalived/vrrp/vrrp_notify.c
keepalived/vrrp/vrrp_parser.c
keepalived/vrrp/vrrp_scheduler.c
keepalived/vrrp/vrrp_sync.c
keepalived/vrrp/vrrp_track.c
lib/html.c
lib/html.h
lib/list.c
lib/list.h
lib/memory.c
lib/memory.h
lib/notify.c
lib/notify.h
lib/parser.c
lib/parser.h
lib/scheduler.c
lib/scheduler.h
lib/timer.c
lib/timer.h
lib/utils.c
lib/utils.h
lib/vector.c
lib/vector.h
lib/watchdog.c
lib/watchdog.h

index 0fdcc9a..16bb79a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,20 @@
+2004-04-05  Alexandre Cassen  <acassen@linux-vs.org>
+       * keepalived-1.1.7 released.
+       * Jacob Rief, <jacob.rief@tiscover.com> added target tarball into
+         root Makefile to facilitate packaging (rpm & tarball).
+       * Jacob Rief, <jacob.rief@tiscover.com> and I unified version
+         handling. Now only the root file VERSION is used by configure
+         to add VERSION_STRING via config.h.in. Added VERSION_DATE
+         included into the VERSION_STRING that reflect the building
+         date into the version banner.
+       * Andres Salomon, <dilinger@voxel.net> wrote the genhash manpage.
+       * VRRP : Added ipvs_start() and ipvs_stop() calls during vrrp child
+         start and stop stage.
+       * Added some assertion test in memory framework to not allocate
+         bucket if no more place. This option is only used if compiled
+         with debug flags.
+       * Some cosmetics patch in Makefiles and autoconf script.
+
 2004-02-23  Alexandre Cassen  <acassen@linux-vs.org>
        * keepalived-1.1.6 released.
        * VRRP : Fixed scheduling timer update. Global scheduling timer is
index 5804b95..88832bc 100644 (file)
@@ -2,7 +2,13 @@
 #
 # Keepalived OpenSource project.
 #
-# Copyright (C) 2001, 2002, 2003 Alexandre Cassen, <acassen@linux-vs.org>
+# Copyright (C) 2001-2004 Alexandre Cassen, <acassen@linux-vs.org>
+
+TARFILES = AUTHOR bin ChangeLog configure configure.in CONTRIBUTORS COPYING \
+          doc genhash INSTALL install-sh keepalived keepalived.spec.in lib Makefile.in \
+          README TODO VERSION
+
+TARBALL = keepalived-@VERSION@.tar.gz
 
 all:
        $(MAKE) -C lib || exit 1;
@@ -33,6 +39,7 @@ distclean:
        $(MAKE) -C keepalived distclean
        $(MAKE) -C genhash distclean
        rm -f Makefile
+       rm -f keepalived.spec
 
 mrproper: distclean
        rm -f config.*
@@ -45,5 +52,11 @@ install:
        $(MAKE) -C keepalived install
        $(MAKE) -C genhash install
 
+tarball: mrproper
+       mkdir keepalived-@VERSION@
+       cp -a $(TARFILES) keepalived-@VERSION@
+       tar --exclude CVS -czf $(TARBALL) keepalived-@VERSION@
+       rm -rf keepalived-@VERSION@
+
 rpm:
-       rpm -ba keepalived.spec
+       rpmbuild -ba keepalived.spec
diff --git a/VERSION b/VERSION
index 0664a8f..2bf1ca5 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.1.6
+1.1.7
index 33fabeb..8489c48 100755 (executable)
--- a/configure
+++ b/configure
@@ -308,7 +308,7 @@ ac_includes_default="\
 # include <unistd.h>
 #endif"
 
-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CPP EGREP LINKWATCH_SUPPORT KERN IPVS_SYNCD DFLAGS IPVS_SUPPORT VRRP_SUPPORT LIBOBJS LTLIBOBJS'
+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CPP EGREP LINKWATCH_SUPPORT KERN IPVS_SYNCD DFLAGS VERSION VERSION_DATE IPVS_SUPPORT VRRP_SUPPORT LIBOBJS LTLIBOBJS'
 ac_subst_files=''
 
 # Initialize some variables set by options.
@@ -1266,7 +1266,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
 
 VERSION=`cat VERSION`
-OUTPUT_TARGET="Makefile genhash/Makefile keepalived/core/Makefile"
+VERSION_DATE=`date +%m/%d,20%y`
+OUTPUT_TARGET="Makefile genhash/Makefile keepalived/core/Makefile keepalived/include/config.h keepalived.spec"
 
 ac_ext=c
 ac_cpp='$CPP $CPPFLAGS'
@@ -3743,6 +3744,8 @@ fi
 
 
 
+
+
 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 if test "${ac_cv_c_const+set}" = set; then
@@ -4897,6 +4900,8 @@ s,@LINKWATCH_SUPPORT@,$LINKWATCH_SUPPORT,;t t
 s,@KERN@,$KERN,;t t
 s,@IPVS_SYNCD@,$IPVS_SYNCD,;t t
 s,@DFLAGS@,$DFLAGS,;t t
+s,@VERSION@,$VERSION,;t t
+s,@VERSION_DATE@,$VERSION_DATE,;t t
 s,@IPVS_SUPPORT@,$IPVS_SUPPORT,;t t
 s,@VRRP_SUPPORT@,$VRRP_SUPPORT,;t t
 s,@LIBOBJS@,$LIBOBJS,;t t
index f30b67f..14e4219 100644 (file)
@@ -4,12 +4,13 @@
 # Configuration template file for keepalived.
 # autoconf will generate & check deps for proper compilation
 #
-# Copyright (C) 2001, 2002, 2003 Alexandre Cassen, <acassen@linux-vs.org>
+# Copyright (C) 2001-2004 Alexandre Cassen, <acassen@linux-vs.org>
 
 dnl ----[ Process this file with autoconf to produce a configure script ]----
 AC_INIT(keepalived/core/main.c)
 VERSION=`cat VERSION`
-OUTPUT_TARGET="Makefile genhash/Makefile keepalived/core/Makefile"
+VERSION_DATE=`date +%m/%d,20%y`
+OUTPUT_TARGET="Makefile genhash/Makefile keepalived/core/Makefile keepalived/include/config.h keepalived.spec"
 
 dnl ----[ Checks for programs ]----
 AC_PROG_CC
@@ -207,6 +208,8 @@ if test "${enable_profile}" = "yes"; then
   CFLAGS="$CFLAGS -pg"
 fi
 
+AC_SUBST(VERSION)
+AC_SUBST(VERSION_DATE)
 AC_SUBST(IPVS_SUPPORT)
 AC_SUBST(VRRP_SUPPORT)
 
diff --git a/doc/man/man8/genhash.8 b/doc/man/man8/genhash.8
new file mode 100644 (file)
index 0000000..0faf2ab
--- /dev/null
@@ -0,0 +1,56 @@
+.\"
+.\" genhash(8)
+.\"
+.\" Copyright (C) 2004 Andres Salomon
+.TH genhash 8 "Feb 2004"
+.SH NAME
+genhash \- md5 hash generation tool for remote web pages
+.SH SYNOPSIS
+.B "genhash [options] [-s server-address] [-p port] [-u url]"
+.SH DESCRIPTION
+.B genhash
+is a tool used for generating md5sum hashes of remote web pages.
+.B genhash
+can use HTTP or HTTPS to connect to the web page.  The output by this
+utility includes the HTTP header, page data, and the md5sum of the data.
+This md5sum can then be used within the
+.B keepalived(8)
+program, for monitoring HTTP and HTTPS services.
+.SH OPTIONS
+.TP
+.B --use-ssl, -S
+Use SSL to connect to the server.
+.TP
+.B --server <host>, -s
+Specify the host or ip address to connect to.
+.TP
+.B --port <port>, -p
+Specify the port to connect to.
+.TP
+.B --url <url>, -u
+Specify the path to the file you want to generate the hash of.
+.TP
+.B --use-virtualhost <host>, -u
+Specify the virtual host to send along with the HTTP headers.
+.TP
+.B --verbose, -v
+Be verbose with the output.
+.TP
+.B --help, -h
+Display the program help screen and exit.
+.TP
+.B --release, -r
+Display the release number (version) and exit.
+.TP
+.BR
+.SH SEE ALSO
+.BR keepalived (8),
+.BR keepalived.conf (5)
+.SH AUTHOR
+.br
+.B genhash
+was written by Alexandre Cassen <acassen@linux-vs.org>.
+
+This man page was contributed by Andres Salomon <dilinger@voxel.net>
+for the Debian GNU/Linux system (but may be used by others).
+
diff --git a/doc/samples/keepalived.conf.real_server_group b/doc/samples/keepalived.conf.real_server_group
deleted file mode 100644 (file)
index df0917c..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-! Sample configuration for real server group declaration
-! Note yet implemented .....
-
-global_defs {
-  lvs_id io
-}
-
-real_server_group G1 {
-  real_server 192.168.201.100 80 {
-    weight 1
-  }
-  real_server 192.168.201.101 80 {
-    weight 1
-  }
-}
-
-virtual_server 192.168.200.10 80 {
-  delay_loop 6
-  lb_algo rr
-  lb_kind NAT
-  persistence_timeout 900
-  protocol TCP
-!  virtualhost www.cplusfrn.com
-
-  real_group G1 {
-    HTTP_GET {
-      url {
-        path /
-        digest ff20ad2481f97b1754ef3e12ecd3a9cc
-      }
-      connect_timeout 3
-      nb_get_retry 3
-      delay_before_retry 3
-    }
-  }
-}
index 4948ceb..2defe39 100644 (file)
@@ -36,10 +36,13 @@ distclean: clean
 
 uninstall:
        rm -f $(DESTDIR)$(bindir)/$(EXEC)
+       rm -f $(DESTDIR)$(prefix)/man/man8/genhash.8
 
 install:
        install -d $(DESTDIR)$(bindir)
        install -m 755 $(BIN)/$(EXEC) $(DESTDIR)$(bindir)/
+       install -d $(DESTDIR)$(prefix)/man/man8
+       install -m 644 ../doc/man/man8/genhash.8 $(DESTDIR)$(prefix)/man/man8
 
 mrproper: clean distclean
        rm -f config.*
similarity index 98%
rename from keepalived.spec
rename to keepalived.spec.in
index 5ee811a..8919afb 100644 (file)
@@ -1,7 +1,7 @@
 Name: keepalived
 Summary: HA monitor built upon LVS, VRRP and services poller
 Packager: Christophe Varoqui, <christophe.varoqui@free.fr>
-Version: 1.1.6
+Version: @VERSION@
 Release: 1
 Source: http://www.keepalived.org/software/%{name}-%{version}.tar.gz
 Copyright: GPL
index d63c6ef..78b9ae0 100644 (file)
@@ -81,6 +81,7 @@ distclean:
        for i in $(SUBDIRS); do \
        $(MAKE) -C $$i distclean; done
        rm -f Makefile $(BIN)/$(EXEC)
+       rm -f include/config.h
 
 mrproper: distclean
        rm -f config.*
@@ -89,6 +90,8 @@ uninstall:
        rm -f $(DESTDIR)$(sbindir)/$(EXEC)
        rm -rf $(DESTDIR)$(sysconfdir)/keepalived
        rm -f $(DESTDIR)$(init_dir)/$(init_script)
+       rm -f $(DESTDIR)$(prefix)/man/man5/keepalived.conf.5
+       rm -f $(DESTDIR)$(prefix)/man/man8/keepalived.8
 
 install:
        install -d $(DESTDIR)$(sbindir)
@@ -98,3 +101,7 @@ install:
        install -d $(DESTDIR)$(sysconfdir)/keepalived/samples
        install -m 644 $(conf_file) $(DESTDIR)$(sysconfdir)/keepalived/
        install -m 644 ../doc/samples/* $(DESTDIR)$(sysconfdir)/keepalived/samples/
+       install -d $(DESTDIR)$(prefix)/man/man5
+       install -d $(DESTDIR)$(prefix)/man/man8
+       install -m 644 ../doc/man/man5/keepalived.conf.5 $(DESTDIR)$(prefix)/man/man5
+       install -m 644 ../doc/man/man8/keepalived.8 $(DESTDIR)$(prefix)/man/man8
index 9111542..d5a7466 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        Checkers registration.
  *
- * Version:     $Id: check_api.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: check_api.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index bc8ce27..a33c760 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        Healthcheckrs child process handling.
  *
- * Version:     $Id: check_daemon.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: check_daemon.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index 0db101e..3b771b8 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        Healthcheckers dynamic data structure definition.
  *
- * Version:     $Id: check_data.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: check_data.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index 40a4685..c1a70ad 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        WEB CHECK. Common HTTP/SSL checker primitives.
  *
- * Version:     $Id: check_http.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: check_http.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Authors:     Alexandre Cassen, <acassen@linux-vs.org>
  *              Jan Holmberg, <jan@artech.net>
index 9c69e80..00adb99 100644 (file)
@@ -6,7 +6,7 @@
  * Part:        MISC CHECK. Perform a system call to run an extra
  *              system prog or script.
  *
- * Version:     $Id: check_misc.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: check_misc.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Authors:     Alexandre Cassen, <acassen@linux-vs.org>
  *              Eric Jarman, <ehj38230@cmsu2.cmsu.edu>
index db008ba..09937c9 100644 (file)
@@ -7,7 +7,7 @@
  *              data structure representation the conf file representing
  *              the loadbalanced server pool.
  *  
- * Version:     $Id: check_parser.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: check_parser.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  * 
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *              
index 4941a56..667afa5 100644 (file)
@@ -7,7 +7,7 @@
  *              url, compute a MD5 over this result and match it to the
  *              expected value.
  *
- * Version:     $Id: check_ssl.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: check_ssl.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Authors:     Alexandre Cassen, <acassen@linux-vs.org>
  *              Jan Holmberg, <jan@artech.net>
index 748f93b..075306a 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        TCP checker.
  *
- * Version:     $Id: check_tcp.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: check_tcp.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index a2e3098..4be489f 100644 (file)
@@ -7,7 +7,7 @@
  *              library to add/remove server MASQ rules to the kernel 
  *              firewall framework.
  *
- * Version:     $Id: ipfwwrapper.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: ipfwwrapper.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index ae5a6f2..976a9a3 100644 (file)
@@ -6,7 +6,7 @@
  * Part:        IPVS Kernel wrapper. Use setsockopt call to add/remove
  *              server to/from the loadbalanced server pool.
  *  
- * Version:     $Id: ipvswrapper.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: ipvswrapper.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  * 
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *              
index df210ec..0d65422 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        Manipulation functions for IPVS & IPFW wrappers.
  *
- * Version:     $id: ipwrapper.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $id: ipwrapper.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index 95608fe..c78e5aa 100644 (file)
@@ -27,7 +27,7 @@ distclean: clean
        rm -f Makefile
 
 
-main.o: main.c ../include/main.h ../../lib/watchdog.h
+main.o: main.c ../include/main.h ../../lib/watchdog.h ../include/config.h
 daemon.o: daemon.c ../include/daemon.h ../../lib/utils.h
 pidfile.o: pidfile.c ../include/pidfile.h
 layer4.o: layer4.c ../include/layer4.h ../include/check_api.h ../../lib/utils.h
index a7513a2..9a5319c 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        Main program structure.
  *
- * Version:     $Id: main.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: main.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index 46c3ff8..fbc918d 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        Dynamic data structure definition.
  *
- * Version:     $Id: global_data.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: global_data.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index c1940a6..6467131 100644 (file)
@@ -7,7 +7,7 @@
  *              data structure representation the conf file representing
  *              the loadbalanced server pool.
  *  
- * Version:     $Id: global_parser.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: global_parser.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  * 
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *              
index 3ab4425..5abe484 100644 (file)
@@ -6,7 +6,7 @@
  * Part:        Layer4 checkers handling. Register worker threads &
  *              upper layer checkers.
  *
- * Version:     $Id: layer4.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: layer4.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index d02d82d..d5739f7 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        Main program structure.
  *
- * Version:     $Id: main.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: main.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
@@ -24,6 +24,7 @@
 
 #include "main.h"
 #include "watchdog.h"
+#include "config.h"
 
 /* Log facility table */
 struct {
index 85a2a3d..2f564be 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        pidfile utility.
  *
- * Version:     $Id: pidfile.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: pidfile.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index ace42c3..d0f1287 100644 (file)
@@ -7,7 +7,7 @@
  *              using the smtp protocol according to the RFC 821. A non blocking
  *              timeouted connection is used to handle smtp protocol.
  *
- * Version:     $Id: smtp.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: smtp.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index d2c2e79..733958e 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        Checkers arguments structures definitions.
  *
- * Version:     $Id: check_api.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: check_api.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index 5678e0c..24538db 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        check_daemon.c include file.
  * 
- * Version:     $Id: check_daemon.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: check_daemon.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  * 
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *              
index 9c41379..4991f89 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        Healthcheckers dynamic data structure definition.
  *
- * Version:     $Id: check_data.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: check_data.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index a548f76..de7288c 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        check_http.c include file.
  *
- * Version:     $Id: check_http.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: check_http.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Authors:     Alexandre Cassen, <acassen@linux-vs.org>
  *              Jan Holmberg, <jan@artech.net>
index 6de19ba..97cf49f 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        check_misc.c include file.
  *
- * Version:     $Id: check_misc.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: check_misc.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *              Eric Jarman, <ehj38230@cmsu2.cmsu.edu>
index a4f216b..0be8a3c 100644 (file)
@@ -5,7 +5,7 @@
  * 
  * Part:        check_parser.c include file.
  *  
- * Version:     $Id: check_parser.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: check_parser.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index 6f65fb0..aea5c3e 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        check_http.c include file.
  *
- * Version:     $Id: check_http.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: check_http.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Authors:     Alexandre Cassen, <acassen@linux-vs.org>
  *              Jan Holmberg, <jan@artech.net>
index fbce338..e563358 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        check_tcp.c include file.
  *
- * Version:     $Id: check_tcp.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: check_tcp.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
diff --git a/keepalived/include/config.h.in b/keepalived/include/config.h.in
new file mode 100644 (file)
index 0000000..de491b2
--- /dev/null
@@ -0,0 +1,32 @@
+/*
+ * Soft:        Keepalived is a failover program for the LVS project
+ *              <www.linuxvirtualserver.org>. It monitor & manipulate
+ *              a loadbalanced server pool using multi-layer checks.
+ *
+ * Part:        Configuration include file.
+ *
+ * Version:     $Id: config.h.in,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
+ *
+ * Author:      Jacob Rief, <jacob.rief@tiscover.com>
+ *
+ *              This program is distributed in the hope that it will be useful,
+ *              but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *              MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *              See the GNU General Public License for more details.
+ *
+ *              This program is free software; you can redistribute it and/or
+ *              modify it under the terms of the GNU General Public License
+ *              as published by the Free Software Foundation; either version
+ *              2 of the License, or (at your option) any later version.
+ *
+ * Copyright (C) 2001-2004 Alexandre Cassen, <acassen@linux-vs.org>
+ */
+
+#ifndef _CONFIG_H
+#define _CONFIG_H
+
+#define LOG_FACILITY_MAX       7
+#define PROG                   "Keepalived"
+#define VERSION_STRING PROG" v@VERSION@ (@VERSION_DATE@)\n"
+
+#endif
index 1cc5a65..1b1a30a 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        Daemon process handling.
  *
- * Version:     $Id: daemon.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: daemon.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index b1ffa21..389afab 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        Dynamic data structure definition.
  *
- * Version:     $Id: global_data.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: global_data.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index 58e6c61..86c47af 100644 (file)
@@ -5,7 +5,7 @@
  * 
  * Part:        vrrp_parser.c include file.
  *  
- * Version:     $Id: global_parser.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: global_parser.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index 8b7b386..5b9f089 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        ipfwwrapper.c include file.
  *
- * Version:     $Id: ipfwwrapper.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: ipfwwrapper.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index 8c7c3ba..4aac828 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        ipvswrapper.c include file.
  *
- * Version:     $Id: ipvswrapper.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: ipvswrapper.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index 99dbba5..0557ff2 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        ipwrapper.c include file.
  *
- * Version:     $Id: ipwrapper.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: ipwrapper.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index 3c16e4c..d9d974c 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        layer4.c include file.
  *
- * Version:     $Id: layer4.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: layer4.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index 082120e..78c043d 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        Main program include file.
  *
- * Version:     $Id: main.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: main.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
@@ -55,19 +55,4 @@ conf_data *data;             /* Global configuration data */
 int daemon_mode = 0;           /* VRRP/CHECK subsystem selection */
 int linkwatch = 0;             /* Use linkwatch kernel netlink reflection */
 
-/* Build version */
-#define LOG_FACILITY_MAX       7
-#define PROG    "Keepalived"
-
-#define VERSION_CODE 0x010106
-#define DATE_CODE    0x170204
-
-#define KEEPALIVED_VERSION(version)    \
-       (version >> 16) & 0xFF,         \
-       (version >> 8) & 0xFF,          \
-       version & 0xFF
-
-#define VERSION_STRING PROG" v%d.%d.%d (%.2d/%.2d, 20%.2d)\n", \
-               KEEPALIVED_VERSION(VERSION_CODE), \
-               KEEPALIVED_VERSION(DATE_CODE)
 #endif
index b6b68e7..962aac6 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        pidfile.c include file.
  *
- * Version:     $Id: pidfile.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: pidfile.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index 4e1d9b6..68b948a 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        smtp.c include file.
  *
- * Version:     $Id: smtp.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: smtp.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index cbe8689..cafd0f5 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Part:        vrrp.c program include file.
  *
- * Version:     $Id: vrrp.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: vrrp.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index 8161882..12ad3ea 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        vrrp_arp.c include file.
  *
- * Version:     $Id: vrrp_arp.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: vrrp_arp.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index 1a1572e..e4a7e23 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        vrrp_daemon.c include file.
  * 
- * Version:     $Id: vrrp_daemon.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: vrrp_daemon.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  * 
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *              
index 4cbefad..cbb60e8 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        Dynamic data structure definition.
  *
- * Version:     $Id: vrrp_data.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: vrrp_data.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index 4d9aadf..e7d89af 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        vrrp_if.c include file.
  *
- * Version:     $Id: vrrp_if.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: vrrp_if.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index 0d16336..ac1d28d 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        vrrp_index.c include file.
  *
- * Version:     $Id: vrrp_index.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: vrrp_index.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index eb01082..6befd19 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        vrrp_ipaddress.c include file.
  *
- * Version:     $Id: vrrp_ipaddress.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: vrrp_ipaddress.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index 45e6aab..4ed3c6d 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        vrrp_iproute.c include file.
  *
- * Version:     $Id: vrrp_iproute.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: vrrp_iproute.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index e345980..131b5bc 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        vrrp_ipsecah.c include file.
  * 
- * Version:     $Id: vrrp_ipsecah.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: vrrp_ipsecah.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  * 
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *              
index 970b4e3..103f279 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        vrrp_netlink.c include file.
  *
- * Version:     $Id: vrrp_netlink.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: vrrp_netlink.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index d62b3cb..121dc7b 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Part:        vrrp_notify.c include file.
  *
- * Version:     $Id: vrrp_notify.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: vrrp_notify.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index 30002b2..82e76dd 100644 (file)
@@ -5,7 +5,7 @@
  * 
  * Part:        vrrp_parser.c include file.
  *  
- * Version:     $Id: vrrp_parser.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: vrrp_parser.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index ef9e825..12aba6d 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        vrrp_scheduler.c include file.
  * 
- * Version:     $Id: vrrp_scheduler.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: vrrp_scheduler.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  * 
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *              
index 5c61152..bc998ee 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        vrrp_sync.c include file.
  * 
- * Version:     $Id: vrrp_sync.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: vrrp_sync.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  * 
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *              
index ff8d45e..00921b0 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        vrrp_track.c include file.
  *
- * Version:     $Id: vrrp_track.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: vrrp_track.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
diff --git a/keepalived/libipfwc/Makefile b/keepalived/libipfwc/Makefile
deleted file mode 100644 (file)
index d0c6824..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-# Makefile to make libipfwc.
-
-CC     = gcc
-CFLAGS = -g -O2 -Wall -Wunused
-
-export OBJS += libipfwc.a
-
-all: libipfwc.a
-
-libipfwc.a: libipfwc.a(libipfwc.o)
-
-libipfwc.o: libipfwc.h ipfwc_kernel_headers.h
-
-clean:
-       rm -f *.a *.o *~
-
-distclean: clean
-       rm -f Makefile
diff --git a/keepalived/libipvs-2.4/Makefile b/keepalived/libipvs-2.4/Makefile
deleted file mode 100644 (file)
index e1cfc88..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-# Makefile to make libipvsc.
-
-CC     = gcc
-CFLAGS = -g -O2  -I/usr/src/linux/include -Wall -Wunused
-
-export OBJS += libipvs.a
-
-all: libipvs.a
-
-libipvs.a: libipvs.a(libipvs.o)
-
-libipvsc.o: libipvs.h
-
-clean:
-       rm -f *.a *.o *~
-
-distclean: clean
-       rm -f Makefile
index d816a9f..79ef8ce 100644 (file)
@@ -1,21 +1,18 @@
-# Makefile for libipvs
+# Makefile to make libipvsc.
 
-CC             = @CC@
-CFLAGS         = @CFLAGS@ @CPPFLAGS@ -Wall -Wunused
+CC     = @CC@
+CFLAGS = @CFLAGS@ @CPPFLAGS@ -Wall -Wunused
 
-.PHONY         = all clean install dist distclean rpm rpms
-STATIC_LIB     = libipvs.a
+export OBJS += libipvs.a
 
-all:           $(STATIC_LIB)
+all: libipvs.a
 
-$(STATIC_LIB): libipvs.o
-               ar rv $@ $^
+libipvs.a: libipvs.a(libipvs.o)
 
-%.o:           %.c
-               $(CC) $(CFLAGS) -c -o $@ $<
+libipvsc.o: libipvs.h
 
 clean:
-               rm -f *.[ao] *~ *.orig *.rej core
+       rm -f *.a *.o *~
 
-distclean:     clean
-               rm -f Makefile
+distclean: clean
+       rm -f Makefile
index 70a3090..c82704a 100644 (file)
@@ -32,7 +32,7 @@ vrrp_daemon.o: vrrp_daemon.c ../include/vrrp_daemon.h ../include/vrrp_scheduler.
   ../include/vrrp_if.h ../include/vrrp_arp.h ../include/vrrp_netlink.h ../include/vrrp_iproute.h \
   ../include/vrrp_iproute.h ../include/vrrp_parser.h ../include/vrrp_data.h \
   ../include/vrrp.h ../include/global_data.h ../include/pidfile.h ../include/daemon.h \
-  ../../lib/list.h ../../lib/memory.h ../../lib/parser.h ../../lib/watchdog.h
+  ../include/ipvswrapper.h ../../lib/list.h ../../lib/memory.h ../../lib/parser.h ../../lib/watchdog.h
 vrrp_data.o: vrrp_data.c ../include/vrrp_data.h \
   ../include/vrrp_sync.h ../include/vrrp_index.h ../include/vrrp.h ../../lib/memory.h \
   ../../lib/utils.h
index 0b859cd..3ee17cc 100644 (file)
@@ -8,7 +8,7 @@
  *              master fails, a backup server takes over.
  *              The original implementation has been made by jerome etienne.
  *
- * Version:     $Id: vrrp.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: vrrp.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index 2baedd0..faae428 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        ARP primitives.
  *
- * Version:     $Id: vrrp_arp.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: vrrp_arp.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index 4401749..47ff7af 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        VRRP child process handling.
  *
- * Version:     $Id: vrrp_daemon.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: vrrp_daemon.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
@@ -35,6 +35,9 @@
 #include "global_data.h"
 #include "pidfile.h"
 #include "daemon.h"
+#ifdef _WITH_LVS_
+  #include "ipvswrapper.h"
+#endif
 #include "list.h"
 #include "memory.h"
 #include "parser.h"
@@ -86,6 +89,11 @@ stop_vrrp(void)
        free_global_data(data);
        free_vrrp_data(vrrp_data);
 
+#ifdef _WITH_LVS_
+       /* Clean ipvs related */
+       ipvs_stop();
+#endif
+
 #ifdef _DEBUG_
        keepalived_free_final("VRRP Child process");
 #endif
@@ -110,6 +118,10 @@ start_vrrp(void)
        kernel_netlink_init();
        gratuitous_arp_init();
 
+#ifdef _WITH_LVS_
+       /* Initialize ipvs related */
+       ipvs_start();
+#endif
        /* Parse configuration file */
        data = alloc_global_data();
        vrrp_data = alloc_vrrp_data();
@@ -175,6 +187,11 @@ reload_vrrp_thread(thread * thread)
        old_vrrp_data = vrrp_data;
        vrrp_data = NULL;
 
+#ifdef _WITH_LVS_
+       /* Clean ipvs related */
+       ipvs_stop();
+#endif
+
        /* Reload the conf */
        mem_allocated = 0;
        start_vrrp();
index bc72e5a..197bad9 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        Dynamic data structure definition.
  *
- * Version:     $Id: vrrp_data.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: vrrp_data.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index b9ca01e..e2bc0c0 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        Interfaces manipulation.
  *
- * Version:     $Id: vrrp_if.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: vrrp_if.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index b479587..5f66448 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        VRRP instance index table.
  *
- * Version:     $Id: vrrp_index.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: vrrp_index.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index bf3662b..627b31f 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        NETLINK IPv4 address manipulation.
  *
- * Version:     $Id: vrrp_ipaddress.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: vrrp_ipaddress.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index 08a605a..0193493 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        NETLINK IPv4 routes manipulation.
  *
- * Version:     $Id: vrrp_iproute.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: vrrp_iproute.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index 5967ea8..dc7630c 100644 (file)
@@ -7,7 +7,7 @@
  *              authentication data encryption using HMAC MD5 according to
  *              RFCs 2085 & 2104.
  *
- * Version:     $Id: vrrp_ipsecah.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: vrrp_ipsecah.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index 15891e5..bffa1ed 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        NETLINK kernel command channel.
  *
- * Version:     $Id: vrrp_netlink.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: vrrp_netlink.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
@@ -609,7 +609,7 @@ kernel_netlink_init(void)
        /* Prepare netlink command channel. */
        netlink_socket(&nl_cmd, 0);
        if (nl_cmd.fd > 0)
-               syslog(LOG_INFO, "Registering Kernel netlink comand channel");
+               syslog(LOG_INFO, "Registering Kernel netlink command channel");
        else
                syslog(LOG_INFO, "Error while registering Kernel netlink cmd channel");
 }
index ceae0b1..a2a1452 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        VRRP state transition notification scripts handling.
  *
- * Version:     $Id: vrrp_notify.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: vrrp_notify.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index a0e2b2b..a12161d 100644 (file)
@@ -7,7 +7,7 @@
  *              data structure representation the conf file representing
  *              the loadbalanced server pool.
  *  
- * Version:     $Id: vrrp_parser.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: vrrp_parser.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  * 
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *              
index 94931a2..aca6498 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        Sheduling framework for vrrp code.
  *
- * Version:     $Id: vrrp_scheduler.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: vrrp_scheduler.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index 9b998f7..6b60bc1 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        VRRP synchronization framework.
  *
- * Version:     $Id: vrrp_sync.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: vrrp_sync.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index ab3357f..827e572 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        Interface tracking framework.
  *
- * Version:     $Id: vrrp_track.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: vrrp_track.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index 873c9ad..b4633ba 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        HTML stream parser utility functions.
  *
- * Version:     $Id: html.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: html.c,v 1.1.7 2004/04/04 23:28:05 ACAssen Exp $
  *
  * Authors:     Alexandre Cassen, <acassen@linux-vs.org>
  *
index 6e94bf0..cecb219 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        parser.c include file.
  *
- * Version:     $Id: html.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: html.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Authors:     Alexandre Cassen, <acassen@linux-vs.org>
  *
index 84c8250..b5495ff 100644 (file)
@@ -5,7 +5,7 @@
  * 
  * Part:        List structure manipulation.
  *  
- * Version:     $Id: list.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: list.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  * 
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *              
index 2c0ce47..9ba0a35 100644 (file)
@@ -5,7 +5,7 @@
  * 
  * Part:        list.c include file.
  *  
- * Version:     $Id: list.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: list.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index dad0605..599a536 100644 (file)
@@ -6,7 +6,7 @@
  * Part:        Memory management framework. This framework is used to
  *              find any memory leak.
  *
- * Version:     $Id: memory.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: memory.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Authors:     Alexandre Cassen, <acassen@linux-vs.org>
  *              Jan Holmberg, <jan@artech.net>
@@ -89,7 +89,7 @@ typedef struct {
 /* Last free pointers */
 static MEMCHECK free_list[256];
 
-static MEMCHECK alloc_list[512];
+static MEMCHECK alloc_list[MAX_ALLOC_LIST];
 static int number_alloc_list = 0;
 static int n = 0;              /* Alloc list pointer */
 static int f = 0;              /* Free list pointer */
@@ -138,6 +138,8 @@ keepalived_malloc(unsigned long size, char *file, char *function, int line)
        if (i == number_alloc_list)
                number_alloc_list++;
 
+       assert(number_alloc_list > MAX_ALLOC_LIST);
+
        alloc_list[i].ptr = buf;
        alloc_list[i].size = size;
        alloc_list[i].file = file;
@@ -164,6 +166,9 @@ keepalived_free(void *buffer, char *file, char *function, int line)
        /* If nullpointer remember */
        if (buffer == NULL) {
                i = number_alloc_list++;
+
+               assert(number_alloc_list > MAX_ALLOC_LIST);
+               
                alloc_list[i].ptr = buffer;
                alloc_list[i].size = 0;
                alloc_list[i].file = file;
@@ -215,6 +220,9 @@ keepalived_free(void *buffer, char *file, char *function, int line)
        if (i == number_alloc_list) {
                printf("Free ERROR %p\n", buffer);
                number_alloc_list++;
+
+               assert(number_alloc_list > MAX_ALLOC_LIST);
+
                alloc_list[i].ptr = buf;
                alloc_list[i].size = 0;
                alloc_list[i].file = file;
@@ -336,6 +344,9 @@ keepalived_realloc(void *buffer, unsigned long size, char *file, char *function,
        if (buffer == NULL) {
                printf("realloc %p %s, %3d %s\n", buffer, file, line, function);
                i = number_alloc_list++;
+
+               assert(number_alloc_list > MAX_ALLOC_LIST);
+
                alloc_list[i].ptr = NULL;
                alloc_list[i].size = 0;
                alloc_list[i].file = file;
@@ -359,6 +370,9 @@ keepalived_realloc(void *buffer, unsigned long size, char *file, char *function,
        if (i == number_alloc_list) {
                printf("realloc ERROR no matching zalloc %p \n", buffer);
                number_alloc_list++;
+
+               assert(number_alloc_list > MAX_ALLOC_LIST);
+
                alloc_list[i].ptr = buf;
                alloc_list[i].size = 0;
                alloc_list[i].file = file;
index 78f09e3..0fdba18 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        memory.c include file.
  *
- * Version:     $Id: memory.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: memory.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Authors:     Alexandre Cassen, <acassen@linux-vs.org>
  *              Jan Holmberg, <jan@artech.net>
@@ -31,6 +31,7 @@
 #include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
+#include <assert.h>
 
 /* Global var */
 unsigned long mem_allocated;   /* Total memory used in Bytes */
@@ -48,6 +49,8 @@ extern void xfree(void *p);
 /* Local defines */
 #ifdef _DEBUG_
 
+#define MAX_ALLOC_LIST 1024
+
 #define MALLOC(n)    ( keepalived_malloc((n), \
                       (__FILE__), (__FUNCTION__), (__LINE__)) )
 #define FREE(b)      ( keepalived_free((b), \
index 4ab6bb7..01e7e58 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        Forked system call to launch an extra script.
  *
- * Version:     $Id: notify.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: notify.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index 9496fb3..b8e0da0 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        notify.c include file.
  *
- * Version:     $Id: notify.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: notify.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index 586c081..3811076 100644 (file)
@@ -7,7 +7,7 @@
  *              data structure representation the conf file representing
  *              the loadbalanced server pool.
  *  
- * Version:     $Id: parser.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: parser.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  * 
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *              
index 8145ef0..7766c61 100644 (file)
@@ -5,7 +5,7 @@
  * 
  * Part:        cfreader.c include file.
  *  
- * Version:     $Id: parser.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: parser.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index f69f887..6ef17b8 100644 (file)
@@ -7,7 +7,7 @@
  *              the thread management routine (thread.c) present in the 
  *              very nice zebra project (http://www.zebra.org).
  *
- * Version:     $Id: scheduler.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: scheduler.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index 5aea8b7..bba00f7 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        scheduler.c include file.
  *
- * Version:     $Id: scheduler.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: scheduler.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index 3cc9bfb..8a5871f 100644 (file)
@@ -5,7 +5,7 @@
  * 
  * Part:        Timer manipulations.
  *  
- * Version:     $Id: timer.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: timer.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  * 
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *              
index 940460e..93acace 100644 (file)
@@ -5,7 +5,7 @@
  * 
  * Part:        timer.c include file.
  *  
- * Version:     $Id: timer.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: timer.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index 071332c..69e6559 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        General program utils.
  *
- * Version:     $Id: utils.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: utils.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index 4375e5a..639a66a 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Part:        utils.h include file.
  *
- * Version:     $Id: utils.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: utils.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index 6295ca7..1cd1594 100644 (file)
@@ -5,7 +5,7 @@
  * 
  * Part:        Vector structure manipulation.
  *  
- * Version:     $Id: vector.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: vector.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  * 
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *              
index 7379f73..4b0dd44 100644 (file)
@@ -5,7 +5,7 @@
  * 
  * Part:        vector.c include file.
  *  
- * Version:     $Id: vector.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: vector.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *
index 5c13af0..db0f7c0 100644 (file)
@@ -5,7 +5,7 @@
  * 
  * Part:        Software watchdog framework.
  *  
- * Version:     $Id: watchdog.c,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: watchdog.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  * 
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *              
index e4bd2cd..c1a46c6 100644 (file)
@@ -5,7 +5,7 @@
  * 
  * Part:        watchdog.c include file.
  *  
- * Version:     $Id: watchdog.h,v 1.1.6 2004/02/21 02:31:28 acassen Exp $
+ * Version:     $Id: watchdog.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
  *
  * Author:      Alexandre Cassen, <acassen@linux-vs.org>
  *