aboutsummaryrefslogtreecommitdiff
path: root/plugins/utils.h.in
diff options
context:
space:
mode:
authorGravatar Jeremy T. Bouse <undrgrid@users.sourceforge.net> 2003-03-08 02:26:22 +0000
committerGravatar Jeremy T. Bouse <undrgrid@users.sourceforge.net> 2003-03-08 02:26:22 +0000
commit4a95946a9b634513494553808b31372060e3c045 (patch)
tree25a976382e9e4812e565599de93e68cb0b2d0a83 /plugins/utils.h.in
parentc8ba525d6a1f040cb439f3a963cdb32c36c8f2a8 (diff)
downloadmonitoring-plugins-4a95946a9b634513494553808b31372060e3c045.tar.gz
AF indepedent routines introduced.
Modifed process_request() & my_connect() parameters to make 'proto' type 'int' rather than 'char *' and use IPPROTO_* POSIX values. Removed is_dotted_quad() & my_inet_aton() functions Added is_addr(), is_inet_addr(), is_inet6_addr() and resolve_host_or_addr() functions to check whether it is a valid IP address Modified is_host() to call is_addr() and is_hostname() git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@384 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/utils.h.in')
-rw-r--r--plugins/utils.h.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/utils.h.in b/plugins/utils.h.in
index 317ec46f..0d947f42 100644
--- a/plugins/utils.h.in
+++ b/plugins/utils.h.in
@@ -28,7 +28,9 @@ int timeout_interval = DEFAULT_SOCKET_TIMEOUT;
/* Test input types */
int is_host (char *);
-int is_dotted_quad (char *);
+int is_addr (char *);
+int is_inet_addr (char *);
+int is_inet6_addr (char *);
int is_hostname (char *);
int is_integer (char *);