diff options
author | Florian Westphal <fw@strlen.de> | 2020-10-13 20:29:09 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2020-12-16 00:35:56 +0100 |
commit | f51343d0af559ed0d00f4dc82b9d3d9e784eea23 (patch) | |
tree | c92b4c002262f80ee648655bd132f9d967e39481 /src/nspawn/nspawn-expose-ports.h | |
parent | firewall-util: prepare for alternative to iptables backend (diff) | |
download | systemd-f51343d0af559ed0d00f4dc82b9d3d9e784eea23.tar.xz systemd-f51343d0af559ed0d00f4dc82b9d3d9e784eea23.zip |
nspawn: pass userdata pointer, not inet_addr union
Next patch will need to pass two pointers to the callback instead
of just the addr mask. Caller will pass a compound structure, so
make this 'void *userdata' to de-clutter the next patch.
Diffstat (limited to '')
-rw-r--r-- | src/nspawn/nspawn-expose-ports.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nspawn/nspawn-expose-ports.h b/src/nspawn/nspawn-expose-ports.h index cc834a4197..d0c1cecbe8 100644 --- a/src/nspawn/nspawn-expose-ports.h +++ b/src/nspawn/nspawn-expose-ports.h @@ -19,7 +19,7 @@ typedef struct ExposePort { void expose_port_free_all(ExposePort *p); int expose_port_parse(ExposePort **l, const char *s); -int expose_port_watch_rtnl(sd_event *event, int recv_fd, sd_netlink_message_handler_t handler, union in_addr_union *exposed, sd_netlink **ret); +int expose_port_watch_rtnl(sd_event *event, int recv_fd, sd_netlink_message_handler_t handler, void *userdata, sd_netlink **ret); int expose_port_send_rtnl(int send_fd); int expose_port_execute(sd_netlink *rtnl, ExposePort *l, union in_addr_union *exposed); |