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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user