diff options
author | hide <33016470+hdfln@users.noreply.github.com> | 2021-03-24 01:05:25 +0900 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-03-24 11:26:20 +0100 |
commit | 29ca310e6190a319c36008837266d4f4a60807a1 (patch) | |
tree | 8a531fa1a31308c2dfd0da116e912a8f692f7c4d | |
parent | 6555b0557624c184f4f8b34617411a02d6365d5a (diff) | |
download | systemd-29ca310e6190a319c36008837266d4f4a60807a1.tar.gz |
network: fix ipv6 tunnel encapsulation limit (#19087)
The encapsulation limit of IPv6 tunnel can not be set to 4, which is the default value of the encapsulation limit.
(cherry picked from commit 6b1ed5e7e68fc5992a7bdabe4a05a7a3e1e1d898)
(cherry picked from commit 5678859dfd2eb1d018a0f5d468131367d152bbe2)
-rw-r--r-- | src/network/netdev/tunnel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/netdev/tunnel.c b/src/network/netdev/tunnel.c index 852aa423b6..dbe398fb96 100644 --- a/src/network/netdev/tunnel.c +++ b/src/network/netdev/tunnel.c @@ -389,7 +389,7 @@ static int netdev_ip6tnl_fill_message_create(NetDev *netdev, Link *link, sd_netl if (t->allow_localremote >= 0) SET_FLAG(t->flags, IP6_TNL_F_ALLOW_LOCAL_REMOTE, t->allow_localremote); - if (t->encap_limit != IPV6_DEFAULT_TNL_ENCAP_LIMIT) { + if (t->encap_limit != 0) { r = sd_netlink_message_append_u8(m, IFLA_IPTUN_ENCAP_LIMIT, t->encap_limit); if (r < 0) return log_netdev_error_errno(netdev, r, "Could not append IFLA_IPTUN_ENCAP_LIMIT attribute: %m"); |