]> git.proxmox.com Git - mirror_iproute2.git/commit
route: ignore RTAX_HOPLIMIT of value -1
authorPhil Sutter <phil@nwl.cc>
Wed, 2 Dec 2015 12:50:22 +0000 (13:50 +0100)
committerStephen Hemminger <shemming@brocade.com>
Thu, 10 Dec 2015 16:45:11 +0000 (08:45 -0800)
commit0f7543322c5fd64d70672578979cf74226f54b64
treeb792606a9a36bb5b94dfa17278784b0804c4b514
parenta96a5d94c6bd58cb455c66a38cff6077841e7aab
route: ignore RTAX_HOPLIMIT of value -1

Older kernels use -1 internally as indicator to use the sysctl default,
but they still export the setting. Newer kernels use 0 to indicate that
(which is why the conversion from -1 to 0 was done here), but they also
stopped exporting the value. Since the meaning of -1 is clear, treat it
equally like default on newer kernels (which is to not print anything).

Signed-off-by: Phil Sutter <phil@nwl.cc>
ip/iproute.c