[systemd-commits] src/network

Tom Gundersen tomegun at kemper.freedesktop.org
Mon May 12 09:19:01 PDT 2014


 src/network/networkd-tunnel.c |    8 ++++++++
 1 file changed, 8 insertions(+)

New commits:
commit 9ae702110457a555ffc6ff7b59e203ead067db66
Author: Susant Sahani <susant at redhat.com>
Date:   Fri May 2 23:29:56 2014 +0530

    networkd-ipip-tunnel: add support ttl
    
    Add support for ipip tunnel ttl.

diff --git a/src/network/networkd-tunnel.c b/src/network/networkd-tunnel.c
index 49a4975..0ecb1c9 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,



More information about the systemd-commits mailing list