diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2023-11-03 13:22:56 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2023-11-07 09:53:14 +0100 |
commit | e90f2770ae44de238a227f884e806637a2b80403 (patch) | |
tree | 215078d0b14fb196c2541bdc9f917cae11a505b1 /util.h | |
parent | 26d86f1304af402878d143ba20a18ef59c444263 (diff) | |
download | passt-e90f2770ae44de238a227f884e806637a2b80403.tar passt-e90f2770ae44de238a227f884e806637a2b80403.tar.gz passt-e90f2770ae44de238a227f884e806637a2b80403.tar.bz2 passt-e90f2770ae44de238a227f884e806637a2b80403.tar.lz passt-e90f2770ae44de238a227f884e806637a2b80403.tar.xz passt-e90f2770ae44de238a227f884e806637a2b80403.tar.zst passt-e90f2770ae44de238a227f884e806637a2b80403.zip |
port_fwd: Move automatic port forwarding code to port_fwd.[ch]
The implementation of scanning /proc files to do automatic port forwarding
is a bit awkwardly split between procfs_scan_listen() in util.c,
get_bound_ports() and related functions in conf.c and the initial setup
code in conf().
Consolidate all of this into port_fwd.h, which already has some related
definitions, and a new port_fwd.c.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -217,8 +217,6 @@ void bitmap_set(uint8_t *map, int bit); void bitmap_clear(uint8_t *map, int bit); int bitmap_isset(const uint8_t *map, int bit); char *line_read(char *buf, size_t len, int fd); -void procfs_scan_listen(struct ctx *c, uint8_t proto, int ip_version, int ns, - uint8_t *map, const uint8_t *exclude); void ns_enter(const struct ctx *c); bool ns_is_init(void); void write_pidfile(int fd, pid_t pid); |