]> git.ipfire.org Git - thirdparty/iproute2.git/commit
gre: Fix ttl inherit option
authorRobert Shearman <rs823p@att.com>
Tue, 28 Nov 2017 11:16:21 +0000 (11:16 +0000)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 28 Nov 2017 17:48:22 +0000 (09:48 -0800)
commit079e67816e5f7e2970ee1caa8f6427214993d31a
tree9ec93854cd52bbd9e23cc082cc09bad31f9d1927
parent56708ae7c9535859223c5b68097b35bf0fae677c
gre: Fix ttl inherit option

Specifying "... ttl inherit" currently does nothing on a GRE link
modify since the previous ttl value is retrieved up front. Fix this by
explicitly setting ttl to 0 when "inherit" is specified for the
option, since 0 represents the semantics of inherit.

Signed-off-by: Robert Shearman <rs823p@att.com>
ip/link_gre.c