summaryrefslogtreecommitdiffstats
path: root/plugins/netutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/netutils.h')
-rw-r--r--plugins/netutils.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/plugins/netutils.h b/plugins/netutils.h
index 5a495c9..347509e 100644
--- a/plugins/netutils.h
+++ b/plugins/netutils.h
@@ -81,20 +81,14 @@ void host_or_die(const char *str);
81# define is_hostname(addr) resolve_host_or_addr(addr, AF_INET) 81# define is_hostname(addr) resolve_host_or_addr(addr, AF_INET)
82#endif 82#endif
83 83
84#ifdef LOCAL_TIMEOUT_ALARM_HANDLER
85extern unsigned int socket_timeout; 84extern unsigned int socket_timeout;
86extern int socket_timeout_state; 85extern unsigned int socket_timeout_state;
87RETSIGTYPE socket_timeout_alarm_handler (int) __attribute__((noreturn));
88#else
89unsigned int socket_timeout = DEFAULT_SOCKET_TIMEOUT;
90unsigned int socket_timeout_state = STATE_CRITICAL;
91extern RETSIGTYPE socket_timeout_alarm_handler (int) __attribute__((noreturn));
92#endif
93
94extern int econn_refuse_state; 86extern int econn_refuse_state;
95extern int was_refused; 87extern int was_refused;
96extern int address_family; 88extern int address_family;
97 89
90RETSIGTYPE socket_timeout_alarm_handler (int) __attribute__((noreturn));
91
98/* SSL-Related functionality */ 92/* SSL-Related functionality */
99#ifdef HAVE_SSL 93#ifdef HAVE_SSL
100/* maybe this could be merged with the above np_net_connect, via some flags */ 94/* maybe this could be merged with the above np_net_connect, via some flags */