Re: [PATCH net] net/route: enforce hoplimit max value

2016-05-14 Thread David Miller
From: Paolo Abeni 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/t

[PATCH net] net/route: enforce hoplimit max value

2016-05-13 Thread Paolo Abeni
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,