diff options
author | Susant Sahani <susant@redhat.com> | 2015-07-23 09:52:24 +0530 |
---|---|---|
committer | Susant Sahani <susant@redhat.com> | 2015-07-23 09:52:24 +0530 |
commit | ec2a3e3af25bc8c4d620a201e11645e70697f8de (patch) | |
tree | c0e5c4792822ecbd7830a76e271d45d91eaceb3d /src/network/networkd-netdev-tunnel.c | |
parent | 276de52699a470a4a4a35443df485eb1f666f563 (diff) |
networkd: ip6 tunnel add DSCP
This patch adds support for setting the
DSCP field in the ip6 tunnel.
when set it inherits DSCP field between inner and outer header.
Diffstat (limited to 'src/network/networkd-netdev-tunnel.c')
-rw-r--r-- | src/network/networkd-netdev-tunnel.c | 3 |
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"); |