summaryrefslogtreecommitdiff
path: root/fs/ocfs2/file.c
diff options
context:
space:
mode:
authorPaolo Abeni <pabeni@redhat.com>2016-05-13 18:33:41 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-05-18 18:35:08 -0700
commit8be13acc8709f013813da8ae36c6f0e538cbcc0f (patch)
treedd28f2137493b237fc91f8a43e2c389d469c92de /fs/ocfs2/file.c
parent057f85ef44965346eb3bd5e8978dd7297b386ee7 (diff)
downloadlwn-8be13acc8709f013813da8ae36c6f0e538cbcc0f.tar.gz
lwn-8be13acc8709f013813da8ae36c6f0e538cbcc0f.zip
net/route: enforce hoplimit max value
[ Upstream commit 626abd59e51d4d8c6367e03aae252a8aa759ac78 ] 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@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/ocfs2/file.c')
0 files changed, 0 insertions, 0 deletions