[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] xm-test: fix the ip allocation function

On Mon, 2013-09-30 at 16:12 +0800, Zhu Yanhai wrote:
> __findFirstOctetIP() is expecting min and max available octets according to
> its code, however the caller getFreeIP() gives it the min octet and (max - 
> min + 1),
> which is the length instead.

The code is pretty opaque, but I agree, the elements of free_oct_ips,
which is ultimately what gets passed here, are
initialised as (int(maxo[3]) - int(mino[3])) + 1

> Signed-off-by: Zhu Yanhai <gaoyang.zyh@xxxxxxxxxx>

Acked + applied, thanks.

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.