diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/network/networkd-netdev-tunnel.c | 16 |
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; } |