]> git.ipfire.org Git - thirdparty/iproute2.git/commit
iptunnel: simplify parsing TTL, allow 'hlim' as identifier
authorPhil Sutter <phil@nwl.cc>
Fri, 13 Nov 2015 17:09:02 +0000 (18:09 +0100)
committerStephen Hemminger <shemming@brocade.com>
Mon, 23 Nov 2015 23:26:37 +0000 (15:26 -0800)
commit0dd4d2b37fb4f88518f73e4635435e918093397f
treeda073e332cde2b16337d19fa9a609eb9bc15198c
parent2520598a1aa846c51d023714f7e713cd6e2dd56b
iptunnel: simplify parsing TTL, allow 'hlim' as identifier

Instead of parsing an unsigned integer and checking boundaries, simply
parse u8. This and the added ttl alias 'hlim' provide consistency with
ip6tunnel.

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