[Top][All Lists]

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

Re: [Qemu-devel] [PATCH] net: avoid to use variable length array in net_

From: Stefano Garzarella
Subject: Re: [Qemu-devel] [PATCH] net: avoid to use variable length array in net_client_init()
Date: Tue, 7 May 2019 09:53:55 +0200
User-agent: NeoMutt/20180716

On Mon, May 06, 2019 at 12:54:20PM -0500, Eric Blake wrote:
> On 5/3/19 12:06 PM, Stefano Garzarella wrote:
> > net_client_init() uses a variable length array to store the prefix
> > of 'ipv6-net' parameter (e.g. if ipv6-net=fec0::0/64, the prefix
> > is 'fec0::0').
> > Since the IPv6 prefix can be at most as long as an IPv6 address,
> > we can use an array with fixed size equals to INET6_ADDRSTRLEN.
> In addition to Markus' comments, on the subject line:
> s/avoid to use/avoid using/

Thanks, I'll change it!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]