summaryrefslogtreecommitdiffstats
path: root/plugins/netutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/netutils.h')
-rw-r--r--plugins/netutils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/netutils.h b/plugins/netutils.h
index 8bc7bd61..1168f9f8 100644
--- a/plugins/netutils.h
+++ b/plugins/netutils.h
@@ -37,6 +37,7 @@
37 37
38#include "config.h" 38#include "config.h"
39#include "common.h" 39#include "common.h"
40#include "utils.h"
40#include <netinet/in.h> 41#include <netinet/in.h>
41#include <arpa/inet.h> 42#include <arpa/inet.h>
42 43
@@ -77,6 +78,7 @@ int send_request (int sd, int proto, const char *send_buffer, char *recv_buffer,
77int is_host (const char *); 78int is_host (const char *);
78int is_addr (const char *); 79int is_addr (const char *);
79int resolve_host_or_addr (const char *, int); 80int resolve_host_or_addr (const char *, int);
81void host_or_die(const char *str);
80#define is_inet_addr(addr) resolve_host_or_addr(addr, AF_INET) 82#define is_inet_addr(addr) resolve_host_or_addr(addr, AF_INET)
81#ifdef USE_IPV6 83#ifdef USE_IPV6
82# define is_inet6_addr(addr) resolve_host_or_addr(addr, AF_INET6) 84# define is_inet6_addr(addr) resolve_host_or_addr(addr, AF_INET6)