diff options
author | Holger Weiss <hweiss@users.sourceforge.net> | 2007-09-24 00:30:14 +0000 |
---|---|---|
committer | Holger Weiss <hweiss@users.sourceforge.net> | 2007-09-24 00:30:14 +0000 |
commit | 0b579a345617b0376dc3c30c09316246b9b74525 (patch) | |
tree | 111762b4b2e4554c2414221231603a2609452ead /plugins | |
parent | 6483a72b167906b82e90957e8b962c0994dcde40 (diff) | |
download | monitoring-plugins-0b579a345617b0376dc3c30c09316246b9b74525.tar.gz |
Let ./configure --without-ipv6 suppress non-IPv4 DNS lookups (noted by
Mark Frost on nagios-users@)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1794 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/netutils.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/netutils.c b/plugins/netutils.c index e6ffc548..7bf22543 100644 --- a/plugins/netutils.c +++ b/plugins/netutils.c | |||
@@ -39,7 +39,11 @@ | |||
39 | unsigned int socket_timeout = DEFAULT_SOCKET_TIMEOUT; | 39 | unsigned int socket_timeout = DEFAULT_SOCKET_TIMEOUT; |
40 | int econn_refuse_state = STATE_CRITICAL; | 40 | int econn_refuse_state = STATE_CRITICAL; |
41 | int was_refused = FALSE; | 41 | int was_refused = FALSE; |
42 | #if USE_IPV6 | ||
42 | int address_family = AF_UNSPEC; | 43 | int address_family = AF_UNSPEC; |
44 | #else | ||
45 | int address_family = AF_INET; | ||
46 | #endif | ||
43 | 47 | ||
44 | /* handles socket timeouts */ | 48 | /* handles socket timeouts */ |
45 | void | 49 | void |