[libvirt] [PATCH] virtportallocator: Change number of ports to 65536

Ján Tomko jtomko at redhat.com
Thu Jun 14 07:40:40 UTC 2018


On Thu, Jun 14, 2018 at 09:31:55AM +0200, Pavel Hrdina wrote:
>USHRT_MAX is not good enough because the value is 65535 which specifies
>the number of bits in bitmap.  The allowed port range is 0-65535 so we
>need to increase the number.
>
>We could have USHRT_MAX + 1 but let's define the number explicitly.
>
>Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1590214
>
>Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
>---
> src/util/virportallocator.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180614/f8bf0e2f/attachment-0001.sig>


More information about the libvir-list mailing list