rtnl: support adding VETH_INFO_PEER containers into rtnl messages

This commit is contained in:
Lennart Poettering
2014-02-13 18:47:53 +01:00
parent 5a1aece581
commit 31a4e15384
4 changed files with 17 additions and 18 deletions
+2 -2
View File
@@ -194,7 +194,7 @@ static int netdev_create(NetDev *netdev, Link *link, sd_rtnl_message_handler_t c
return r;
}
r = sd_rtnl_message_open_container(req, IFLA_LINKINFO);
r = sd_rtnl_message_open_container(req, IFLA_LINKINFO, 0);
if (r < 0) {
log_error_netdev(netdev,
"Could not open IFLA_LINKINFO container: %s",
@@ -217,7 +217,7 @@ static int netdev_create(NetDev *netdev, Link *link, sd_rtnl_message_handler_t c
}
if (netdev->vlanid <= VLANID_MAX) {
r = sd_rtnl_message_open_container(req, IFLA_INFO_DATA);
r = sd_rtnl_message_open_container(req, IFLA_INFO_DATA, 0);
if (r < 0) {
log_error_netdev(netdev,
"Could not open IFLA_INFO_DATA container: %s",