diff options
author | Susant Sahani <susant@redhat.com> | 2014-05-02 23:29:56 +0530 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-05-12 18:15:31 +0200 |
commit | 9ae702110457a555ffc6ff7b59e203ead067db66 (patch) | |
tree | 260d188d2f385c3b05a9c810c785aa05f26b99ea | |
parent | 3eb94c9e9e25586fa8ac93545810b87ce9241363 (diff) |
networkd-ipip-tunnel: add support ttl
Add support for ipip tunnel ttl.
-rw-r--r-- | src/network/networkd-tunnel.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/network/networkd-tunnel.c b/src/network/networkd-tunnel.c index 49a4975522..0ecb1c971e 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, |