diff options
Diffstat (limited to 'plugins/utils.h')
0 files changed, 0 insertions, 0 deletions
diff --git a/plugins/netutils.h b/plugins/netutils.h index 8bc7bd6..1168f9f 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, | |||
77 | int is_host (const char *); | 78 | int is_host (const char *); |
78 | int is_addr (const char *); | 79 | int is_addr (const char *); |
79 | int resolve_host_or_addr (const char *, int); | 80 | int resolve_host_or_addr (const char *, int); |
81 | void 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) |