2024-04-23 05:47:27 +00:00
|
|
|
int connect_hook(struct poolhd *pool, struct eval *val,
|
|
|
|
struct sockaddr_ina *dst, int next);
|
|
|
|
|
|
|
|
int on_tunnel_check(struct poolhd *pool, struct eval *val,
|
|
|
|
char *buffer, size_t bfsize, int out);
|
|
|
|
|
|
|
|
int on_desync(struct poolhd *pool, struct eval *val,
|
2024-05-11 14:23:34 +00:00
|
|
|
char *buffer, size_t bfsize, int out);
|
2024-04-27 23:50:46 +00:00
|
|
|
|
2024-07-29 09:26:42 +00:00
|
|
|
ssize_t udp_hook(struct eval *val,
|
|
|
|
char *buffer, size_t bfsize, ssize_t n, struct sockaddr_ina *dst);
|
|
|
|
|
2024-04-27 23:50:46 +00:00
|
|
|
#ifdef __linux__
|
|
|
|
int protect(int conn_fd, const char *path);
|
|
|
|
#else
|
|
|
|
#define protect(fd, path) 0
|
|
|
|
#endif
|