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

socket-util: Factor out new function inet_parse_active().

An upcoming commit needs to parse connection strings without connecting to
them, so this change enables that.
This commit is contained in:
Ben Pfaff
2010-04-26 10:43:55 -07:00
parent 917e50e1b8
commit 52f8a75e1b
2 changed files with 55 additions and 30 deletions

View File

@@ -34,6 +34,8 @@ int get_unix_name_len(socklen_t sun_len);
uint32_t guess_netmask(uint32_t ip);
int get_null_fd(void);
bool inet_parse_active(const char *target, uint16_t default_port,
struct sockaddr_in *sinp);
int inet_open_active(int style, const char *target, uint16_t default_port,
struct sockaddr_in *sinp, int *fdp);
int inet_open_passive(int style, const char *target, int default_port,