mirror of
https://github.com/systemd/systemd.git
synced 2024-11-12 15:21:19 +03:00
networkd-ipip-tunnel: add support ttl
Add support for ipip tunnel ttl.
This commit is contained in:
parent
3eb94c9e9e
commit
9ae7021104
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user