[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20160514.153455.805172777482220210.davem@davemloft.net>
Date: Sat, 14 May 2016 15:34:55 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: pabeni@...hat.com
Cc: netdev@...r.kernel.org, kuznet@....inr.ac.ru,
hannes@...essinduktion.org
Subject: Re: [PATCH net] net/route: enforce hoplimit max value
From: Paolo Abeni <pabeni@...hat.com>
Date: Fri, 13 May 2016 18:33:41 +0200
> Currently, when creating or updating a route, no check is performed
> in both ipv4 and ipv6 code to the hoplimit value.
>
> The caller can i.e. set hoplimit to 256, and when such route will
> be used, packets will be sent with hoplimit/ttl equal to 0.
>
> This commit adds checks for the RTAX_HOPLIMIT value, in both ipv4
> ipv6 route code, substituting any value greater than 255 with 255.
>
> This is consistent with what is currently done for ADVMSS and MTU
> in the ipv4 code.
>
> Signed-off-by: Paolo Abeni <pabeni@...hat.com>
Applied, thanks for fixing this.
Powered by blists - more mailing lists