Package: ipvsadm
Version: 1:1.25.clean-1
Severity: normal
Tags: patch

Please consider applying the following patch. It will correct the output for 
ipvsadm -L since it will not display the correct amount of active connections.

Please see 
http://archive.linuxvirtualserver.org/html/lvs-devel/2010-02/msg00006.html for 
details.

Index: ipvsadm-1.25/libipvs/libipvs.c
===================================================================
--- ipvsadm-1.25.orig/libipvs/libipvs.c 2010-02-18 16:57:46.000000000 +0900
+++ ipvsadm-1.25/libipvs/libipvs.c      2010-02-18 16:57:49.000000000 +0900
@@ -747,7 +747,7 @@ static int ipvs_dests_parse_cb(struct nl
        d->entrytable[i].l_threshold = 
nla_get_u32(dest_attrs[IPVS_DEST_ATTR_L_THRESH]);
        d->entrytable[i].activeconns = 
nla_get_u32(dest_attrs[IPVS_DEST_ATTR_ACTIVE_CONNS]);
        d->entrytable[i].inactconns = 
nla_get_u32(dest_attrs[IPVS_DEST_ATTR_INACT_CONNS]);
-       d->entrytable[i].activeconns = 
nla_get_u32(dest_attrs[IPVS_DEST_ATTR_PERSIST_CONNS]);
+       d->entrytable[i].persistconns = 
nla_get_u32(dest_attrs[IPVS_DEST_ATTR_PERSIST_CONNS]);
        d->entrytable[i].af = d->af;
 
        if (ipvs_parse_stats(&(d->entrytable[i].stats),



-- System Information:
Debian Release: 5.0.4
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to