aboutsummaryrefslogtreecommitdiff
path: root/plugins/netutils.h
diff options
context:
space:
mode:
authorGravatar M. Sean Finney <seanius@users.sourceforge.net> 2005-10-25 10:38:02 +0000
committerGravatar M. Sean Finney <seanius@users.sourceforge.net> 2005-10-25 10:38:02 +0000
commit16cd0c8151eee652d88b0b6f3aaa5b917cb87e13 (patch)
tree9587540f51701d62d73670c6c1963f9119c793b5 /plugins/netutils.h
parentceebd58040b1688749d58dd76963af639cf8c803 (diff)
downloadmonitoring-plugins-16cd0c8151eee652d88b0b6f3aaa5b917cb87e13.tar.gz
- added code to allow check_tcp (via np_net_connect) work with local
unix sockets. some testing would be welcome. based on idea from Alex Samorukov. - also introduced a check_clamd behavior in check_tcp. git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1261 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/netutils.h')
-rw-r--r--plugins/netutils.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/netutils.h b/plugins/netutils.h
index 9b0557d3..8bc7bd61 100644
--- a/plugins/netutils.h
+++ b/plugins/netutils.h
@@ -40,6 +40,14 @@
#include <netinet/in.h>
#include <arpa/inet.h>
+#ifdef HAVE_SYS_UN_H
+# include <sys/un.h>
+# ifndef UNIX_PATH_MAX
+ /* linux uses this, on sun it's hard-coded at 108 without a define */
+# define UNIX_PATH_MAX 108
+# endif /* UNIX_PATH_MAX */
+#endif /* HAVE_SYS_UN_H */
+
RETSIGTYPE socket_timeout_alarm_handler (int) __attribute__((noreturn));
/* process_request and wrapper macros */