summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-07-23 22:46:07 +0200
committerTom Gundersen <teg@jklm.no>2015-07-23 22:46:07 +0200
commit37b4859186f8f21640306b18e352aaf97d7be178 (patch)
tree6a859da50b7f96cd5edb7b4965e2412a1b876d8a /src
parent0ed5c799a6ac69b15d11e107994fec1fc49b40fd (diff)
parent54a9d20c47ee40f37c1b266624a500e7ddb9026f (diff)
Merge pull request #683 from ssahani/tun1
networkd: ip6gre add support for flowlabel
Diffstat (limited to 'src')
-rw-r--r--src/network/networkd-netdev-tunnel.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/network/networkd-netdev-tunnel.c b/src/network/networkd-netdev-tunnel.c
index ecf0604c4b..1af234aba3 100644
--- a/src/network/networkd-netdev-tunnel.c
+++ b/src/network/networkd-netdev-tunnel.c
@@ -185,6 +185,16 @@ static int netdev_ip6gre_fill_message_create(NetDev *netdev, Link *link, sd_netl
if (r < 0)
return log_netdev_error_errno(netdev, r, "Could not append IFLA_GRE_TTL attribute: %m");
+ if (t->ipv6_flowlabel != _NETDEV_IPV6_FLOWLABEL_INVALID) {
+ r = sd_netlink_message_append_u32(m, IFLA_GRE_FLOWINFO, t->ipv6_flowlabel);
+ if (r < 0)
+ return log_netdev_error_errno(netdev, r, "Could not append IFLA_GRE_FLOWINFO attribute: %m");
+ }
+
+ r = sd_netlink_message_append_u32(m, IFLA_GRE_FLAGS, t->flags);
+ if (r < 0)
+ return log_netdev_error_errno(netdev, r, "Could not append IFLA_GRE_FLAGS attribute: %m");
+
return r;
}