mirror of
https://github.com/darkk/redsocks.git
synced 2025-08-25 11:15:30 +00:00
Sophisticated accept-backoff is not required, it's ONLY purpose is to protect against busy-loop when `redsocks_conn_max` does not match RLIMIT_NOFILE.
14 lines
497 B
C
14 lines
497 B
C
#ifndef BASE_H_SUN_JUN__3_20_15_57_2007
|
|
#define BASE_H_SUN_JUN__3_20_15_57_2007
|
|
|
|
int getdestaddr(int fd, const struct sockaddr_in *client, const struct sockaddr_in *bindaddr, struct sockaddr_in *destaddr);
|
|
int apply_tcp_keepalive(int fd);
|
|
|
|
uint32_t redsocks_conn_max();
|
|
uint32_t connpres_idle_timeout();
|
|
uint32_t max_accept_backoff_ms();
|
|
|
|
/* vim:set tabstop=4 softtabstop=4 shiftwidth=4: */
|
|
/* vim:set foldmethod=marker foldlevel=32 foldmarker={,}: */
|
|
#endif /* BASE_H_SUN_JUN__3_20_15_57_2007 */
|