LVS
lvs-devel
Google
 
Web LinuxVirtualServer.org

[PATCH] libipvs: Fix initialization of netlink (needed for IPv6)

To: lvs-devel@xxxxxxxxxxxxxxx
Subject: [PATCH] libipvs: Fix initialization of netlink (needed for IPv6)
From: Anders Henke <anders.henke@xxxxxxxx>
Date: Thu, 9 Feb 2012 15:00:01 +0100
Hi,

we've been investigating a few minor issues with LVS and keepalived; a 
freelance developer at my team also prepared a couple of smaller patches 
to resolve those issues we'd like to contribute to the general LVS public.

=== Fix Netlink Init

When the kernel module for ip_vs hasn't been loaded yet and an
application (say, keepalived) tries to call ipvs, IPVS assumes
netlink not to be present and triggers another load attempt
of the kernel module, but without re-testing for netlink.
In the end, netlink isn't being used. However, netlink is essential
for running IPVS with IPv6.

Attached is a oneline-patch for libipvs to adress this issue; it is
based upon commit 91c61a85dccffd00dd6e887d24302443e412433d from
http://master.formilux.org/git/people/alex/keepalived.git,
but is simple enough to be applied to almost any other
release of libipvs as well.

As it's directly related to keepalived and they do seem to keep their own
copy of libipvs, I'll post this patch to keepalived-devel as well
(among a few other patches).


Best,

Anders
-- 
1&1 Internet AG              Expert Systems Architect (IT Operations)
Brauerstrasse 48             v://49.721.91374.0
D-76135 Karlsruhe            f://49.721.91374.225

Amtsgericht Montabaur HRB 6484
Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Robert Hoffmann,
Markus Huhn, Hans-Henning Kettler, Dr. Oliver Mauss, Jan Oetjen

Aufsichtsratsvorsitzender: Michael Scheeren

Attachment: 0001-libipvs-Fix-initialization-of-netlink-needed-for-IPv.patch
Description: Text Data

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] libipvs: Fix initialization of netlink (needed for IPv6), Anders Henke <=