2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

socket-util: New function lookup_hostname().

This is equivalent to lookup_ip() except that it accepts DNS names also.
This commit is contained in:
Ben Pfaff
2010-09-16 14:28:53 -07:00
parent d98fa5032e
commit 13f2ef9709
2 changed files with 35 additions and 0 deletions

View File

@@ -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);