1 /* SPDX-License-Identifier: LGPL-2.1+ */
7 #include "sd-netlink.h"
9 #include "in-addr-util.h"
12 typedef struct ExposePort
{
15 uint16_t container_port
;
16 LIST_FIELDS(struct ExposePort
, ports
);
19 void expose_port_free_all(ExposePort
*p
);
20 int expose_port_parse(ExposePort
**l
, const char *s
);
22 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
);
23 int expose_port_send_rtnl(int send_fd
);
25 int expose_port_execute(sd_netlink
*rtnl
, ExposePort
*l
, union in_addr_union
*exposed
);
26 int expose_port_flush(ExposePort
* l
, union in_addr_union
*exposed
);