1 /* SPDX-License-Identifier: LGPL-2.1+ */
5 Copyright 2015 Lennart Poettering
11 #include "sd-netlink.h"
13 #include "in-addr-util.h"
16 typedef struct ExposePort
{
19 uint16_t container_port
;
20 LIST_FIELDS(struct ExposePort
, ports
);
23 void expose_port_free_all(ExposePort
*p
);
24 int expose_port_parse(ExposePort
**l
, const char *s
);
26 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
);
27 int expose_port_send_rtnl(int send_fd
);
29 int expose_port_execute(sd_netlink
*rtnl
, ExposePort
*l
, union in_addr_union
*exposed
);
30 int expose_port_flush(ExposePort
* l
, union in_addr_union
*exposed
);