sd-netlink: introduce sd_netlink_slot

This commit is contained in:
Yu Watanabe
2018-10-15 18:10:04 +09:00
parent 0c40d13a07
commit ee38400bba
23 changed files with 306 additions and 226 deletions
+2 -2
View File
@@ -209,11 +209,11 @@ int expose_port_watch_rtnl(
return log_error_errno(r, "Failed to create rtnl object: %m");
}
r = sd_netlink_add_match(rtnl, RTM_NEWADDR, handler, exposed);
r = sd_netlink_add_match(rtnl, NULL, RTM_NEWADDR, handler, NULL, exposed);
if (r < 0)
return log_error_errno(r, "Failed to subscribe to RTM_NEWADDR messages: %m");
r = sd_netlink_add_match(rtnl, RTM_DELADDR, handler, exposed);
r = sd_netlink_add_match(rtnl, NULL, RTM_DELADDR, handler, NULL, exposed);
if (r < 0)
return log_error_errno(r, "Failed to subscribe to RTM_DELADDR messages: %m");