keepalived-1.2.2-libipvs-fix-ipv6.patch 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. From cf8ff745812b7fe00d509fb50592348b6f60b433 Mon Sep 17 00:00:00 2001
  2. From: Alexander Holler <alexander.holler@1und1.de>
  3. Date: Mon, 9 Jan 2012 12:58:12 +0100
  4. Subject: [PATCH] libipvs: Fix initialization of netlink (needed for IPv6)
  5. when the module ip_vs wasn't loaded.
  6. The following happened when keepalived was started before the module for IPVS was loaded:
  7. ipvs_init() failed => netlink got disabled.
  8. modprobe_ipvs()
  9. ipvs_init() => netlink was not tested again => no netlink => no IPv6
  10. Fixed through testing netlink always in ipvs_init().
  11. ---
  12. keepalived/libipvs-2.6/libipvs.c | 2 ++
  13. 1 files changed, 2 insertions(+), 0 deletions(-)
  14. diff --git a/keepalived/libipvs-2.6/libipvs.c b/keepalived/libipvs-2.6/libipvs.c
  15. index 2c75118..ea5e851 100644
  16. --- a/keepalived/libipvs-2.6/libipvs.c
  17. +++ b/keepalived/libipvs-2.6/libipvs.c
  18. @@ -114,6 +114,8 @@ int ipvs_init(void)
  19. ipvs_func = ipvs_init;
  20. #ifdef LIBIPVS_USE_NL
  21. + try_nl = 1;
  22. +
  23. if (ipvs_nl_send_message(NULL, NULL, NULL) == 0) {
  24. return ipvs_getinfo();
  25. }
  26. --
  27. 1.7.6.5