summaryrefslogtreecommitdiff
path: root/src/nspawn/nspawn-expose-ports.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-10-15 17:49:53 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-10-16 18:42:23 +0900
commit8190a388a6c6755893b818b2e57289b22d3090f8 (patch)
tree5235c00c78e1cc40e30ebd14a7acd5f903f4c6b8 /src/nspawn/nspawn-expose-ports.c
parent1a7baaa9e23251c7972779a42f82004d53d251a7 (diff)
downloadsystemd-8190a388a6c6755893b818b2e57289b22d3090f8.tar.gz
sd-netlink: make sd_netlink_slot take its description
Diffstat (limited to 'src/nspawn/nspawn-expose-ports.c')
-rw-r--r--src/nspawn/nspawn-expose-ports.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nspawn/nspawn-expose-ports.c b/src/nspawn/nspawn-expose-ports.c
index 0eaf0ca5f5..13ce8490a0 100644
--- a/src/nspawn/nspawn-expose-ports.c
+++ b/src/nspawn/nspawn-expose-ports.c
@@ -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, NULL, RTM_NEWADDR, handler, NULL, exposed);
+ r = sd_netlink_add_match(rtnl, NULL, RTM_NEWADDR, handler, NULL, exposed, "nspawn-NEWADDR");
if (r < 0)
return log_error_errno(r, "Failed to subscribe to RTM_NEWADDR messages: %m");
- r = sd_netlink_add_match(rtnl, NULL, RTM_DELADDR, handler, NULL, exposed);
+ r = sd_netlink_add_match(rtnl, NULL, RTM_DELADDR, handler, NULL, exposed, "nspawn-DELADDR");
if (r < 0)
return log_error_errno(r, "Failed to subscribe to RTM_DELADDR messages: %m");