Patch attached.

On Wed, Feb 10, 2016 at 16:51:05 +0000, Debian Bug Tracking System wrote:
> Thank you for filing a new Bug report with Debian.

> This is an automatically generated reply to let you know your message
> has been received.

> Your message is being forwarded to the package maintainers and other
> interested parties for their attention; they will reply in due course.

> Your message has been sent to the package maintainer(s):
>  Alexander Wirt <[email protected]>

> If you wish to submit further information on this problem, please
> send it to [email protected].

> Please do not send mail to [email protected] unless you wish
> to report a problem with the Bug-tracking system.

> -- 
> 814348: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=814348
> Debian Bug Tracking System
> Contact [email protected] with problems


-- 
fraff
Description: fix weight maximum value
Bug-Debian: https://bugs.debian.org/814348
 Ipvs kernel module accepts weight up to 2147483647 (INT_MAX).
 This patch rises ipvsadm weight maximum value to INT_MAX instead of 65535.
 .
 ipvsadm (1:1.28-3) unstable; urgency=medium
 .
   * Upload to unstable
Author: Francois Lallart <[email protected]>

--- ipvsadm-1.28.orig/ipvsadm.8
+++ ipvsadm-1.28/ipvsadm.8
@@ -333,7 +333,7 @@ servers are added or modified.
 .B -w, --weight \fIweight\fP
 \fIWeight\fP is an integer specifying the capacity  of a server
 relative to the others in the pool. The valid values of \fIweight\fP
-are 0 through to 65535. The default is 1. Quiescent servers are
+are 0 through to 2147483647. The default is 1. Quiescent servers are
 specified with a weight of zero. A quiescent server will receive no
 new jobs but still serve the existing jobs, for all scheduling
 algorithms distributed with the Linux Virtual Server. Setting a
--- ipvsadm-1.28.orig/ipvsadm.c
+++ ipvsadm-1.28/ipvsadm.c
@@ -625,7 +625,7 @@ parse_options(int argc, char **argv, str
                case 'w':
                        set_option(options, OPT_WEIGHT);
                        if ((ce->dest.weight =
-                            string_to_number(optarg, 0, 65535)) == -1)
+                            string_to_number(optarg, 0, INT_MAX)) == -1)
                                fail(2, "illegal weight specified");
                        break;
                case 'x':

Reply via email to