mirror of
https://passt.top/passt
synced 2024-09-28 18:15:49 +00:00
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>
12 lines
233 B
C
12 lines
233 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later
|
|
* Copyright (c) 2021 Red Hat GmbH
|
|
* Author: Stefano Brivio <sbrivio@redhat.com>
|
|
*/
|
|
|
|
#ifndef CONF_H
|
|
#define CONF_H
|
|
|
|
void conf(struct ctx *c, int argc, char **argv);
|
|
|
|
#endif /* CONF_H */
|