version 1.107, 2024/03/04 02:16:11 |
version 1.108, 2024/05/17 00:30:24 |
|
|
#include <stdio.h> |
#include <stdio.h> |
#include <signal.h> |
#include <signal.h> |
|
|
|
/* special-case port number meaning allow any port */ |
|
#define FWD_PERMIT_ANY_PORT 0 |
|
|
|
/* special-case wildcard meaning allow any host */ |
|
#define FWD_PERMIT_ANY_HOST "*" |
|
|
/* Data structure for representing a forwarding request. */ |
/* Data structure for representing a forwarding request. */ |
struct Forward { |
struct Forward { |
char *listen_host; /* Host (address) to listen on. */ |
char *listen_host; /* Host (address) to listen on. */ |
|
|
}; |
}; |
|
|
int forward_equals(const struct Forward *, const struct Forward *); |
int forward_equals(const struct Forward *, const struct Forward *); |
|
int permitopen_port(const char *p); |
|
|
int daemonized(void); |
int daemonized(void); |
|
|
/* Common server and client forwarding options. */ |
/* Common server and client forwarding options. */ |