diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2017-12-18 15:17:06 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-01-09 14:00:49 +0100 |
commit | 05d0c2e3cfb5aac8bc14b68a12a6c3ef3e88e3a3 (patch) | |
tree | 02f3d0c19b86bca1579313294746af37878255e3 /src/network/netdev/netdev.c | |
parent | 8481e3e71e704a10af0b6d53d4b015b2b8e1e16b (diff) | |
download | systemd-05d0c2e3cfb5aac8bc14b68a12a6c3ef3e88e3a3.tar.gz |
sd-netlink: add generic netlink support
This also adds the ability to incorporate arrays into netlink messages
and to determine when a netlink message is too big, used by some generic
netlink protocols.
Diffstat (limited to 'src/network/netdev/netdev.c')
-rw-r--r-- | src/network/netdev/netdev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/netdev/netdev.c b/src/network/netdev/netdev.c index 7cf110672f..4adaac26b8 100644 --- a/src/network/netdev/netdev.c +++ b/src/network/netdev/netdev.c @@ -114,7 +114,7 @@ static void netdev_cancel_callbacks(NetDev *netdev) { if (!netdev) return; - rtnl_message_new_synthetic_error(-ENODEV, 0, &m); + rtnl_message_new_synthetic_error(netdev->manager->rtnl, -ENODEV, 0, &m); while ((callback = netdev->callbacks)) { if (m) { @@ -322,7 +322,7 @@ int netdev_enslave(NetDev *netdev, Link *link, sd_netlink_message_handler_t call } else if (IN_SET(netdev->state, NETDEV_STATE_LINGER, NETDEV_STATE_FAILED)) { _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL; - r = rtnl_message_new_synthetic_error(-ENODEV, 0, &m); + r = rtnl_message_new_synthetic_error(netdev->manager->rtnl, -ENODEV, 0, &m); if (r >= 0) callback(netdev->manager->rtnl, m, link); } else { |