Permalink
Browse files

keepalived-0.6.6

* keepalived-0.6.6 released.
* added indentation style .indent.pro
* Review the previous source tree. Splitted the code into functional subdirs.
  Added multi-level automake scripts. The source tree looks like :
	.
	|-- bin
	|-- genhash
	|-- keepalived
	|   |-- core
	|   |-- etc
	|   |   |-- init.d
	|   |   `-- keepalived
	|   |-- healthcheck
	|   |-- include
	|   |-- libipfwc
	|   |-- libipvs
	|   |-- samples
	|   `-- vrrp
	`-- lib
* Refine autoconf/automake scripts. Added automake support to libipvs and
  libipfwc. Added code selection compilation for libipvs and libipfwc.
* Review Makefile(s) to use more convenient facilities like distclean, ...
* Added support to modprobe_ipvs if the ip_vs.o module is not loaded.
  If modprobe fails then IPVS is assumed unavailable.
* Refine the IPVS wrapper to be more tolerant. When a VS or RS is already
  configured don t stop the daemon. The daemon is stopped only on critical
  IPVS errors.
* VRRP : Review the bootstrap sequence to start daemon even if one of the
  instance want to run on an interface administratively shut. Added extension
  to FSM to force transition to FAULT state during bootstrap if the interface
  is shut.
* Some cosmetics patches.
* keepalived-0.6.5 released.
* Fixed a NULL pointer exception while releasing IPVS entries.
* Review the Makefile.in to fixe some conventional issue. Fixed a libipvs
  dependance code selection.
* Christophe Varoqui, <Christophe.Varoqui@free.fr> created the rpm spec file.
* Roberto Nibali, <ratz@linux-vs.org> helped during OLS with code cleanup.
  Review the whole code coding style to use more conventional indentation. The
  one used into LVS and Kernel code. Coding style provided by the following
  command :
    find . -name "*.[chS]" -exec indent -kr -i8 -ts8 -sob -l80 -ss -bs -psl \
    {} \; && find . -name "*~" -exec rm  {} \;
* Roberto Nibali and I review the DEBUG logging facility adding global DBG()
  func declaration.
* Roberto Nibali fixed two potential buffer overflow (strcpy).
* Richard  L. Allbery, <rla@prideindustries.com> pointed out a fwmark issue.
  Healthcheckers is enabled if virtual service is a fwmark.
* Some cosmetics patches.
* Alex Kramarov, <alex@incredimail.com> fine the keepalived.init script
  • Loading branch information...
1 parent a5dfa80 commit 80c700f9ce90cb17d11d5ece752316f91a22ea36 Alexandre Cassen committed Jul 6, 2002
Showing with 11,443 additions and 10,798 deletions.
  1. +8 −0 .indent.pro
  2. +54 −1 ChangeLog
  3. +20 −119 Makefile.in
  4. +16 −3 TODO
  5. +1 −1 VERSION
  6. +0 −148 check_api.c
  7. +0 −189 check_ci.c
  8. +0 −746 check_http.c
  9. +0 −145 check_misc.c
  10. +0 −293 check_ssl.c
  11. +0 −183 check_tcp.c
  12. +89 −79 configure
  13. +14 −2 configure.in
  14. +0 −533 data.c
  15. +9 −6 genhash/Makefile.in
  16. +93 −84 genhash/client.c
  17. +0 −1 genhash/client.h
  18. BIN genhash/client.o
  19. +65 −57 genhash/common.c
  20. +2 −1 genhash/common.h
  21. BIN genhash/common.o
  22. +528 −471 genhash/main.c
  23. +13 −13 genhash/main.h
  24. BIN genhash/main.o
  25. +0 −75 ipfwwrapper.c
  26. +0 −248 ipvswrapper.c
  27. +0 −252 ipwrapper.c
  28. +33 −0 keepalived.spec
  29. +87 −0 keepalived/Makefile.in
  30. +28 −0 keepalived/core/Makefile.in
  31. +40 −39 { → keepalived/core}/daemon.c
  32. +581 −0 keepalived/core/data.c
  33. +164 −0 keepalived/core/layer4.c
  34. +99 −0 keepalived/core/list.c
  35. +310 −0 keepalived/core/main.c
  36. +398 −0 keepalived/core/memory.c
  37. +836 −0 keepalived/core/parser.c
  38. +31 −27 { → keepalived/core}/pidfile.c
  39. +606 −0 keepalived/core/scheduler.c
  40. +485 −0 keepalived/core/smtp.c
  41. +40 −35 { → keepalived/core}/timer.c
  42. +151 −0 keepalived/core/utils.c
  43. +50 −42 { → keepalived/core}/vector.c
  44. +1 −1 { → keepalived}/etc/init.d/keepalived.init
  45. +2 −9 { → keepalived}/etc/keepalived/keepalived.conf
  46. +39 −0 keepalived/healthcheck/Makefile.in
  47. +160 −0 keepalived/healthcheck/check_api.c
  48. +198 −0 keepalived/healthcheck/check_ci.c
  49. +738 −0 keepalived/healthcheck/check_http.c
  50. +152 −0 keepalived/healthcheck/check_misc.c
  51. +310 −0 keepalived/healthcheck/check_ssl.c
  52. +176 −0 keepalived/healthcheck/check_tcp.c
  53. +69 −0 keepalived/healthcheck/ipfwwrapper.c
  54. +289 −0 keepalived/healthcheck/ipvswrapper.c
  55. +261 −0 keepalived/healthcheck/ipwrapper.c
  56. +10 −10 { → keepalived/include}/check_api.h
  57. +5 −5 { → keepalived/include}/check_ci.h
  58. +25 −26 { → keepalived/include}/check_http.h
  59. +2 −2 { → keepalived/include}/check_misc.h
  60. +5 −5 { → keepalived/include}/check_ssl.h
  61. +3 −3 { → keepalived/include}/check_tcp.h
  62. +1 −1 { → keepalived/include}/daemon.h
  63. +46 −46 { → keepalived/include}/data.h
  64. +3 −3 { → keepalived/include}/ipfwwrapper.h
  65. +14 −13 { → keepalived/include}/ipvswrapper.h
  66. +12 −12 { → keepalived/include}/ipwrapper.h
  67. +9 −12 { → keepalived/include}/layer4.h
  68. +11 −12 { → keepalived/include}/list.h
  69. +5 −5 { → keepalived/include}/main.h
  70. +2 −2 { → keepalived/include}/memory.h
  71. +5 −6 { → keepalived/include}/parser.h
  72. +1 −1 { → keepalived/include}/pidfile.h
  73. +40 −50 { → keepalived/include}/scheduler.h
  74. +17 −20 { → keepalived/include}/smtp.h
  75. +1 −1 { → keepalived/include}/timer.h
  76. +9 −2 { → keepalived/include}/utils.h
  77. +3 −4 { → keepalived/include}/vector.h
  78. +76 −78 { → keepalived/include}/vrrp.h
  79. +22 −22 { → keepalived/include}/vrrp_if.h
  80. +3 −5 { → keepalived/include}/vrrp_ipaddress.h
  81. +25 −26 { → keepalived/include}/vrrp_ipsecah.h
  82. +8 −7 { → keepalived/include}/vrrp_netlink.h
  83. +3 −3 { → keepalived/include}/vrrp_notify.h
  84. +13 −13 { → keepalived/include}/vrrp_scheduler.h
  85. +5 −6 { → keepalived/include}/vrrp_sync.h
  86. +9 −3 libipfwc/Makefile → keepalived/libipfwc/Makefile.in
  87. +175 −0 keepalived/libipfwc/ipfwc_kernel_headers.h
  88. +179 −148 { → keepalived}/libipfwc/libipfwc.c
  89. +10 −14 { → keepalived}/libipfwc/libipfwc.h
  90. +18 −0 keepalived/libipvs/Makefile.in
  91. 0 { → keepalived}/libipvs/libipvs.c
  92. 0 { → keepalived}/libipvs/libipvs.h
  93. 0 { → keepalived}/samples/client.pem
  94. 0 { → keepalived}/samples/dh1024.pem
  95. 0 { → keepalived}/samples/keepalived.conf.HTTP_GET.port
  96. 0 { → keepalived}/samples/keepalived.conf.SSL_GET
  97. 0 { → keepalived}/samples/keepalived.conf.ci-linux
  98. 0 { → keepalived}/samples/keepalived.conf.fwmark
  99. 0 { → keepalived}/samples/keepalived.conf.misc_check
  100. 0 { → keepalived}/samples/keepalived.conf.misc_check_arg
  101. 0 { → keepalived}/samples/keepalived.conf.real_server_group
  102. 0 { → keepalived}/samples/keepalived.conf.sample
  103. 0 { → keepalived}/samples/keepalived.conf.virtualhost
  104. 0 { → keepalived}/samples/keepalived.conf.vrrp
  105. 0 { → keepalived}/samples/keepalived.conf.vrrp.lvs_syncd
  106. 0 { → keepalived}/samples/keepalived.conf.vrrp.scripts
  107. 0 { → keepalived}/samples/keepalived.conf.vrrp.sync
  108. 0 { → keepalived}/samples/root.pem
  109. 0 { → keepalived}/samples/sample.misccheck.smbcheck.sh
  110. +27 −0 keepalived/vrrp/Makefile.in
  111. +1,158 −0 keepalived/vrrp/vrrp.c
  112. +384 −0 keepalived/vrrp/vrrp_if.c
  113. +25 −24 { → keepalived/vrrp}/vrrp_ipaddress.c
  114. +86 −0 keepalived/vrrp/vrrp_ipsecah.c
  115. +558 −0 keepalived/vrrp/vrrp_netlink.c
  116. +165 −0 keepalived/vrrp/vrrp_notify.c
  117. +753 −0 keepalived/vrrp/vrrp_scheduler.c
  118. +266 −0 keepalived/vrrp/vrrp_sync.c
  119. +0 −180 layer4.c
  120. +0 −184 libipfwc/ipfwc_kernel_headers.h
  121. +0 −12 libipvs/Makefile
  122. +0 −93 list.c
  123. +0 −307 main.c
  124. +0 −380 memory.c
  125. +0 −772 parser.c
  126. +0 −597 scheduler.c
  127. +0 −515 smtp.c
  128. +0 −143 utils.c
  129. +0 −1,101 vrrp.c
  130. +0 −362 vrrp_if.c
  131. +0 −87 vrrp_ipsecah.c
  132. +0 −537 vrrp_netlink.c
  133. +0 −156 vrrp_notify.c
  134. +0 −723 vrrp_scheduler.c
  135. +0 −256 vrrp_sync.c
View
@@ -0,0 +1,8 @@
+-kr
+-i8
+-ts8
+-sob
+-l80
+-ss
+-bs
+-psl
View
@@ -1,3 +1,56 @@
+2002-07-05 Alexandre Cassen <acassen@linux-vs.org>
+ * keepalived-0.6.6 released.
+ * added indentation style .indent.pro
+ * Review the previous source tree. Splitted the code into functional subdirs.
+ Added multi-level automake scripts. The source tree looks like :
+ .
+ |-- bin
+ |-- genhash
+ |-- keepalived
+ | |-- core
+ | |-- etc
+ | | |-- init.d
+ | | `-- keepalived
+ | |-- healthcheck
+ | |-- include
+ | |-- libipfwc
+ | |-- libipvs
+ | |-- samples
+ | `-- vrrp
+ `-- lib
+ * Refine autoconf/automake scripts. Added automake support to libipvs and
+ libipfwc. Added code selection compilation for libipvs and libipfwc.
+ * Review Makefile(s) to use more convenient facilities like distclean, ...
+ * Added support to modprobe_ipvs if the ip_vs.o module is not loaded.
+ If modprobe fails then IPVS is assumed unavailable.
+ * Refine the IPVS wrapper to be more tolerant. When a VS or RS is already
+ configured don t stop the daemon. The daemon is stopped only on critical
+ IPVS errors.
+ * VRRP : Review the bootstrap sequence to start daemon even if one of the
+ instance want to run on an interface administratively shut. Added extension
+ to FSM to force transition to FAULT state during bootstrap if the interface
+ is shut.
+ * Some cosmetics patches.
+
+2002-07-01 Alexandre Cassen <acassen@linux-vs.org>
+ * keepalived-0.6.5 released.
+ * Fixed a NULL pointer exception while releasing IPVS entries.
+ * Review the Makefile.in to fixe some conventional issue. Fixed a libipvs
+ dependance code selection.
+ * Christophe Varoqui, <Christophe.Varoqui@free.fr> created the rpm spec file.
+ * Roberto Nibali, <ratz@linux-vs.org> helped during OLS with code cleanup.
+ Review the whole code coding style to use more conventional indentation. The
+ one used into LVS and Kernel code. Coding style provided by the following
+ command :
+ find . -name "*.[chS]" -exec indent -kr -i8 -ts8 -sob -l80 -ss -bs -psl \
+ {} \; && find . -name "*~" -exec rm {} \;
+ * Roberto Nibali and I review the DEBUG logging facility adding global DBG()
+ func declaration.
+ * Roberto Nibali fixed two potential buffer overflow (strcpy).
+ * Richard L. Allbery, <rla@prideindustries.com> pointed out a fwmark issue.
+ Healthcheckers is enabled if virtual service is a fwmark.
+ * Some cosmetics patches.
+
2002-06-25 Alexandre Cassen <acassen@linux-vs.org>
* keepalived-0.6.4 released.
* Rewrote the previous ip address utilities functions. Review the string
@@ -12,7 +65,7 @@
* Fixed a Kernel 2.2 code selection issue (ETHTOOL).
* Added support to wensong libipvs.
* Fixed a sorry_server cleanup side effect.
- * Alex Karamasov, <alex@incredimail.com> fine the keepalived.init script
+ * Alex Kramarov, <alex@incredimail.com> fine the keepalived.init script
to be compatible with redhat chkconfig.
2002-06-18 Alexandre Cassen <acassen@linux-vs.org>
View
@@ -4,133 +4,34 @@
#
# Copyright (C) 2001, 2002 Alexandre Cassen, <acassen@linux-vs.org>
-EXEC = keepalived
-KERNEL := @KERN@
-IPVS_FLAG := @IPVS_SUPPORT@
-VRRP_FLAG := @VRRP_SUPPORT@
-CI_LINUX := @CI_LINUX@
-
-prefix = @prefix@
-exec_prefix = @exec_prefix@
-sbindir = @sbindir@
-
-init_script = etc/init.d/keepalived.init
-conf_file = etc/keepalived/keepalived.conf
-
-CC = @CC@
-CFLAGS = @CFLAGS@ \
- -Wall -Wunused -Wstrict-prototypes \
- -D$(KERNEL) -D$(VRRP_FLAG) @DFLAGS@
-LDFLAGS = @LIBS@ @LDFLAGS@
-IPVSFLAGS = -D$(IPVS_FLAG) -D@IPVS_SYNCD@
-
-CORE_OBJS = \
- main.o \
- memory.o \
- daemon.o \
- pidfile.o \
- utils.o \
- timer.o \
- scheduler.o \
- vector.o \
- list.o \
- data.o \
- parser.o \
- layer4.o \
- smtp.o
-
-ifeq ($(IPVS_FLAG),_WITH_LVS_)
-IPVS_OBJS = \
- check_api.o \
- check_tcp.o \
- check_http.o \
- check_ssl.o \
- check_misc.o \
- ipwrapper.o \
- ipvswrapper.o
-endif
-
-ifeq ($(VRRP_FLAG),_WITH_VRRP_)
-VRRP_OBJS = \
- vrrp.o \
- vrrp_notify.o \
- vrrp_scheduler.o \
- vrrp_sync.o \
- vrrp_netlink.o \
- vrrp_if.o \
- vrrp_ipaddress.o \
- vrrp_ipsecah.o
-endif
-
-ifeq ($(CI_LINUX),_WITH_CI_LINUX_)
-CI_LINUX_OBJ = check_ci.o
-CIFLAGS = -D$(CI_LINUX)
-endif
-
-ifeq ($(KERNEL),_KRNL_2_2_)
-IPVS_OBJS := $(IPVS_OBJS) ipfwwrapper.o
-LIBIPFW = libipfwc/libipfwc.a
-else
-LIBIPVS = libipvs/libipvs.a
-endif
-
-
-OBJS = $(CORE_OBJS) $(IPVS_OBJS) $(VRRP_OBJS) $(CI_LINUX_OBJ) $(LIBIPVS) $(LIBIPFW)
-
-.c.o:
- $(CC) -o $@ $(CFLAGS) $(IPVSFLAGS) $(CIFLAGS) $(INCLUDE) -c $*.c
-
-all: $(EXEC)
- strip $(EXEC)
- @echo ""
- cd genhash && $(MAKE)
+all:
+ $(MAKE) -C keepalived
+ $(MAKE) -C genhash
@echo ""
@echo "Make complete"
-debug: $(EXEC)
+debug:
+ $(MAKE) -C keepalived debug
@echo ""
@echo "Make complete"
-$(EXEC): $(OBJS) $(LDFLAGS)
- $(CC) -o $(EXEC) $(CFLAGS) $(OBJS) $(LDFLAGS)
-
-libipfwc/libipfwc.a:
- cd libipfwc/ && $(MAKE) libipfwc.a
-libipvs/libipvs.a:
- cd libipvs/ && $(MAKE) libipvs.a
-
-subclean:
-ifeq ($(KERNEL),_KRNL_2_2_)
- cd libipfwc/ && $(MAKE) clean
-else
- cd libipvs/ && $(MAKE) clean
-endif
- cd genhash/ && $(MAKE) clean
+clean:
+ $(MAKE) -C keepalived clean
+ $(MAKE) -C genhash clean
-clean: subclean
- rm -f core *.o $(EXEC)
-
-subclean-dist:
- cd genhash/ && $(MAKE) clean-dist
-
-clean-dist: subclean-dist
- rm -f $(sbindir)/$(EXEC)
- rm -rf $(keepalived_conf_dir)
- rm -f $(init_dir)/$(init_script)
+distclean:
+ $(MAKE) -C keepalived distclean
+ $(MAKE) -C genhash distclean
+ rm -f Makefile
-mrproper: clean clean-dist
+mrproper: distclean
+ rm -f bin/*
rm -f config.*
- rm -f Makefile
- rm -f genhash/Makefile
-subinstall:
- cd genhash/ && $(MAKE) install
+uninstall:
+ $(MAKE) -C keepalived uninstall
+ $(MAKE) -C genhash uninstall
-install: subinstall
- install -d $(sbindir)
- install -m 700 $(EXEC) $(sbindir)/
- install -d $(sysconfdir)/init.d
- install -m 755 $(init_script) $(sysconfdir)/init.d/
- install -d $(sysconfdir)/keepalived/samples
- install -m 644 $(conf_file) $(sysconfdir)/keepalived/
- install -m 644 samples/* $(sysconfdir)/keepalived/samples/
+install:
+ $(MAKE) -C keepalived install
+ $(MAKE) -C genhash install
View
@@ -1,6 +1,19 @@
* Insert LDAP, FTP, SSH, IMAP, POP, RADIUS checkers.
* Add minimum configuration verification (realserver must have
a checker defined, ...)
-* Add system verification (must have LVS support in kernel,
- must have netlink support in kernel,
- must have routing messages in kernel).
+* documentation:
+ - hackers guide
+ - code documentation
+ - users guide
+* code cleanup:
+ - name space cleanup
+ - function returnval check
+ - maybe put *.h files into a ../include directory
+ - maybe add a ../healthcheck directory for the checks
+* more choice with parameters, less hardcoded values:
+ - a general.conf could help, stuff like timeouts and so on
+* functionality:
+ - better startup check mechanism to prevent long debugging sessions
+ - hooks for external checktools. For node-failover
+ - a VTYSH to administrate keepalived on the fly
+ - something I forgot right now :)
View
@@ -1 +1 @@
-0.6.4
+0.6.6
Oops, something went wrong.

0 comments on commit 80c700f

Please sign in to comment.