chiark / gitweb /
networkd: add back path of MTU discovery for SIT
authorSusant Sahani <susant@redhat.com>
Tue, 22 Jul 2014 11:16:39 +0000 (16:46 +0530)
committerSusant Sahani <susant@redhat.com>
Wed, 29 Oct 2014 05:23:56 +0000 (10:53 +0530)
src/network/networkd-netdev-tunnel.c

index 174fe23..7587696 100644 (file)
@@ -120,6 +120,14 @@ static int netdev_sit_fill_message_create(NetDev *netdev, Link *link, sd_rtnl_me
                 return r;
         }
 
+        r = sd_rtnl_message_append_u8(m, IFLA_IPTUN_PMTUDISC, t->pmtudisc);
+        if (r < 0) {
+                log_error_netdev(netdev,
+                                 "Could not append IFLA_IPTUN_PMTUDISC attribute: %s",
+                                 strerror(-r));
+                return r;
+        }
+
         return r;
 }