summaryrefslogtreecommitdiff
path: root/src/network/networkd-netdev-tunnel.c
diff options
context:
space:
mode:
authorDaniel Mack <github@zonque.org>2015-07-23 11:00:15 +0200
committerDaniel Mack <github@zonque.org>2015-07-23 11:00:15 +0200
commit56511eca83b3e078ffce6514c12c7cb075d3eeb1 (patch)
tree012b0e93ba7b7049ac6236b1ab12404e747a7f42 /src/network/networkd-netdev-tunnel.c
parent8cd4eb791aa80e8f9c9d1c4625b411dbe4119b27 (diff)
parent9b0ca30a91b661f56ed7cee5bab02cc5aef6d38b (diff)
Merge pull request #674 from ssahani/tunnel
ip6 tunnel: add support for DSCP
Diffstat (limited to 'src/network/networkd-netdev-tunnel.c')
-rw-r--r--src/network/networkd-netdev-tunnel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network/networkd-netdev-tunnel.c b/src/network/networkd-netdev-tunnel.c
index a13edf6936..ecf0604c4b 100644
--- a/src/network/networkd-netdev-tunnel.c
+++ b/src/network/networkd-netdev-tunnel.c
@@ -271,6 +271,9 @@ static int netdev_ip6tnl_fill_message_create(NetDev *netdev, Link *link, sd_netl
return log_netdev_error_errno(netdev, r, "Could not append IFLA_IPTUN_FLOWINFO attribute: %m");
}
+ if (t->dscp)
+ t->flags |= IP6_TNL_F_RCV_DSCP_COPY;
+
r = sd_netlink_message_append_u32(m, IFLA_IPTUN_FLAGS, t->flags);
if (r < 0)
return log_netdev_error_errno(netdev, r, "Could not append IFLA_IPTUN_FLAGS attribute: %m");