summaryrefslogtreecommitdiff
path: root/src/network/networkd-netdev-vxlan.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-07-29 20:40:17 +0200
committerTom Gundersen <teg@jklm.no>2015-07-29 20:40:17 +0200
commit1051d049a8a5811135d83a89a430c5be846866ca (patch)
tree2beeaf2cf85d1729da66fc725dc830ad42bcea84 /src/network/networkd-netdev-vxlan.c
parentc2570b3de2430b06f545e78ff32b97503f81f09f (diff)
parent8b414e52d14d1e6bc02db65d0de9ad8e0c5017da (diff)
Merge pull request #764 from ssahani/vxlan1
networkd: Add VXLAN Netlink attributes
Diffstat (limited to 'src/network/networkd-netdev-vxlan.c')
-rw-r--r--src/network/networkd-netdev-vxlan.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/network/networkd-netdev-vxlan.c b/src/network/networkd-netdev-vxlan.c
index 2a5c5f0baa..2518e2732b 100644
--- a/src/network/networkd-netdev-vxlan.c
+++ b/src/network/networkd-netdev-vxlan.c
@@ -3,7 +3,7 @@
/***
This file is part of systemd.
- Copyright 2014 Susant Sahani <susant@redhat.com>
+ Copyright 2014 Susant Sahani
systemd is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published by
@@ -101,6 +101,12 @@ static int netdev_vxlan_fill_message_create(NetDev *netdev, Link *link, sd_netli
if (r < 0)
return log_netdev_error_errno(netdev, r, "Could not append IFLA_VXLAN_UDP_ZERO_CSUM6_RX attribute: %m");
+ if (v->group_policy) {
+ r = sd_netlink_message_append_flag(m, IFLA_VXLAN_GBP);
+ if (r < 0)
+ return log_netdev_error_errno(netdev, r, "Could not append IFLA_VXLAN_GBP attribute: %m");
+ }
+
return r;
}