LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

ipvsadm return code patch

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: ipvsadm return code patch
From: Padraig Brady <padraig@xxxxxxxxxxxxx>
Date: Wed, 07 Nov 2001 18:38:48 +0000
This 1 line patch is useful for me and I don't think it
will break anything. It's against 0.8.2 and basically
returns a specific error code from ipvsadm.

cheers,
Padraig.
--- //ipvs-0.8.2/ipvs/ipvsadm/ipvsadm.c Fri Jun 22 16:03:08 2001
+++ ipvsadm.c   Wed Nov  7 16:29:11 2001
@@ -938,6 +938,7 @@
         result = setsockopt(sockfd, IPPROTO_IP, op,
                             (char *)&urule, sizeof(urule));
         if (result) {
+                result = errno; /* return to caller */
                 perror("setsockopt failed");
 
                 /*
<Prev in Thread] Current Thread [Next in Thread>