[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20170925114625.GP3149@secunet.com>
Date: Mon, 25 Sep 2017 13:46:26 +0200
From: Steffen Klassert <steffen.klassert@...unet.com>
To: Alexey Dobriyan <adobriyan@...il.com>
CC: <herbert@...dor.apana.org.au>, <davem@...emloft.net>,
<netdev@...r.kernel.org>
Subject: Re: [PATCH 5/5] xfrm: eradicate size_t
On Thu, Sep 21, 2017 at 11:48:54PM +0300, Alexey Dobriyan wrote:
> All netlink message sizes are a) unsigned, b) can't be >= 4GB in size
> because netlink doesn't support >= 64KB messages in the first place.
>
> All those size_t across the code are a scam especially across networking
> which likes to work with small numbers like 1500 or 65536.
>
> Propagate unsignedness and flip some "int" to "unsigned int" as well.
>
> This is preparation to switching nlmsg_new() to "unsigned int".
>
> Signed-off-by: Alexey Dobriyan <adobriyan@...il.com>
All applied to ipsec-next, thanks Alexey!
Powered by blists - more mailing lists