From: Paolo Abeni <[email protected]> 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 <[email protected]> Applied, thanks for fixing this.
