diff options
author | M. Sean Finney <seanius@users.sourceforge.net> | 2005-10-25 10:38:02 +0000 |
---|---|---|
committer | M. Sean Finney <seanius@users.sourceforge.net> | 2005-10-25 10:38:02 +0000 |
commit | 16cd0c8151eee652d88b0b6f3aaa5b917cb87e13 (patch) | |
tree | 9587540f51701d62d73670c6c1963f9119c793b5 /plugins/netutils.h | |
parent | ceebd58040b1688749d58dd76963af639cf8c803 (diff) | |
download | monitoring-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.h | 8 |
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 @@ | |||
40 | #include <netinet/in.h> | 40 | #include <netinet/in.h> |
41 | #include <arpa/inet.h> | 41 | #include <arpa/inet.h> |
42 | 42 | ||
43 | #ifdef HAVE_SYS_UN_H | ||
44 | # include <sys/un.h> | ||
45 | # ifndef UNIX_PATH_MAX | ||
46 | /* linux uses this, on sun it's hard-coded at 108 without a define */ | ||
47 | # define UNIX_PATH_MAX 108 | ||
48 | # endif /* UNIX_PATH_MAX */ | ||
49 | #endif /* HAVE_SYS_UN_H */ | ||
50 | |||
43 | RETSIGTYPE socket_timeout_alarm_handler (int) __attribute__((noreturn)); | 51 | RETSIGTYPE socket_timeout_alarm_handler (int) __attribute__((noreturn)); |
44 | 52 | ||
45 | /* process_request and wrapper macros */ | 53 | /* process_request and wrapper macros */ |