From 9ae702110457a555ffc6ff7b59e203ead067db66 Mon Sep 17 00:00:00 2001 From: Susant Sahani Date: Fri, 2 May 2014 23:29:56 +0530 Subject: [PATCH] networkd-ipip-tunnel: add support ttl Add support for ipip tunnel ttl. --- src/network/networkd-tunnel.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/network/networkd-tunnel.c b/src/network/networkd-tunnel.c index 49a49755222..0ecb1c971e1 100644 --- a/src/network/networkd-tunnel.c +++ b/src/network/networkd-tunnel.c @@ -102,6 +102,14 @@ static int netdev_fill_ipip_rtnl_message(Link *link, sd_rtnl_message *m) { return r; } + r = sd_rtnl_message_append_u8(m, IFLA_IPTUN_TTL, netdev->tunnel_ttl); + if (r < 0) { + log_error_netdev(netdev, + "Could not append IFLA_IPTUN_TTL attribute: %s", + strerror(-r)); + return r; + } + r = sd_rtnl_message_close_container(m); if (r < 0) { log_error_netdev(netdev,