2
0
mirror of https://github.com/openvswitch/ovs synced 2025-09-01 14:55:18 +00:00

socket-util: Make inet_open_passive() pass back the bound address.

This feature is useful in an upcoming commit.
This commit is contained in:
Ben Pfaff
2010-01-07 15:00:47 -08:00
parent e1bd3bee5c
commit 36775dad35
4 changed files with 26 additions and 6 deletions

View File

@@ -36,7 +36,8 @@ int get_null_fd(void);
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);
int inet_open_passive(int style, const char *target, int default_port,
struct sockaddr_in *sinp);
int read_fully(int fd, void *, size_t, size_t *bytes_read);
int write_fully(int fd, const void *, size_t, size_t *bytes_written);