summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorSusant Sahani <susant@redhat.com>2014-07-22 16:51:53 +0530
committerSusant Sahani <susant@redhat.com>2014-10-29 10:54:01 +0530
commit9243e967a370a9e69b0a81843288a9db3e2dfc62 (patch)
tree5233a8c725f15ad69f3114a5c1fe982e05f2e07a /src/network
parent436b910f1f4f5700f72fd4332f5b615497dcc27e (diff)
networkd: add Patch of MTU discovery for IPIP and GRE
Add path of MTU disovery for IPIP and GRE Kind of tunnels
Diffstat (limited to 'src/network')
-rw-r--r--src/network/networkd-netdev-tunnel.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/network/networkd-netdev-tunnel.c b/src/network/networkd-netdev-tunnel.c
index 75876960b4..e5981a48d8 100644
--- a/src/network/networkd-netdev-tunnel.c
+++ b/src/network/networkd-netdev-tunnel.c
@@ -75,6 +75,14 @@ static int netdev_ipip_fill_message_create(NetDev *netdev, Link *link, sd_rtnl_m
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;
}
@@ -181,6 +189,14 @@ static int netdev_gre_fill_message_create(NetDev *netdev, Link *link, sd_rtnl_me
return r;
}
+ r = sd_rtnl_message_append_u8(m, IFLA_GRE_PMTUDISC, t->pmtudisc);
+ if (r < 0) {
+ log_error_netdev(netdev,
+ "Could not append IFLA_GRE_PMTUDISC attribute: %s",
+ strerror(-r));
+ return r;
+ }
+
return r;
}