LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [PATCH] minor bug in ip_vs_ctl.c

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [PATCH] minor bug in ip_vs_ctl.c
Cc: KUROSAWA Takahiro <kurosawa@xxxxxxxxxxxxx>
From: Wensong Zhang <wensong@xxxxxxxxxxxx>
Date: Sun, 10 Nov 2002 14:28:57 +0800 (CST)
On Thu, 7 Nov 2002, Roberto Nibali wrote:

> 
> This is almost the same for ipvs-1.1.0. I wonder however, why some of 
> the calls do get back and call up(&__ip_vs_mutex) and some don't. It's a 
> very strange mix.
> 

Yes. It should not happen. *blush*  will fix it in ipvs-1.1.x soon.

> Let's see what Wensong thinks about it. What about adding the CMD length 
> check of the IP_VS_SO_GET_VERSION at the beginning too in ipvs-1.0.6?
> It would look nicer :)
> 
>          if (*len < get_arglen[GET_CMDID(cmd)]) {
>                  IP_VS_ERR("get_ctl: len %u < %u\n",
>                            *len, get_arglen[GET_CMDID(cmd)]);
>                  return -EINVAL;
>          }
> 

Well, I don't change too much in the ipvs-1.0.x series, as long as it can 
work correctly. The nicer code will be always in the latest code. :)

Cheers,

Wensong



<Prev in Thread] Current Thread [Next in Thread>