aboutsummaryrefslogtreecommitdiff
path: root/lib/socket-util.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2010-09-16 14:28:53 -0700
committerBen Pfaff <blp@nicira.com>2011-07-27 16:02:12 -0700
commit13f2ef9709fbe24b56540ddc5db62c1098b4190f (patch)
tree8440029f1f7b1675819f97e3deec564f4183fe63 /lib/socket-util.h
parentd98fa5032eaf49b073058dbf390283c9a71001e1 (diff)
socket-util: New function lookup_hostname().
This is equivalent to lookup_ip() except that it accepts DNS names also.
Diffstat (limited to 'lib/socket-util.h')
-rw-r--r--lib/socket-util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/socket-util.h b/lib/socket-util.h
index 10f821e1..ce7cd5ba 100644
--- a/lib/socket-util.h
+++ b/lib/socket-util.h
@@ -24,8 +24,12 @@
int set_nonblocking(int fd);
int get_max_fds(void);
+
int lookup_ip(const char *host_name, struct in_addr *address);
int lookup_ipv6(const char *host_name, struct in6_addr *address);
+
+int lookup_hostname(const char *host_name, struct in_addr *);
+
int get_socket_error(int sock);
int check_connection_completion(int fd);
int drain_rcvbuf(int fd);