X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fstream-unix.c;h=6dee17d7b18d8aadc3628485eb8c3aa712f3b945;hb=e0c91c0cb0d644058bac34267f03d08d4595444c;hp=99a996238ee405eccbe4481ac7fcf8e9b85b2817;hpb=e0edde6fee279cdbbf3c179f5f50adaf0c7c7f1e;p=sliver-openvswitch.git diff --git a/lib/stream-unix.c b/lib/stream-unix.c index 99a996238..6dee17d7b 100644 --- a/lib/stream-unix.c +++ b/lib/stream-unix.c @@ -46,9 +46,9 @@ unix_open(const char *name, char *suffix, struct stream **streamp, const char *connect_path = suffix; int fd; - fd = make_unix_socket(SOCK_STREAM, true, false, NULL, connect_path); + fd = make_unix_socket(SOCK_STREAM, true, NULL, connect_path); if (fd < 0) { - VLOG_ERR("%s: connection failed (%s)", connect_path, strerror(-fd)); + VLOG_DBG("%s: connection failed (%s)", connect_path, strerror(-fd)); return -fd; } @@ -79,7 +79,7 @@ punix_open(const char *name OVS_UNUSED, char *suffix, { int fd, error; - fd = make_unix_socket(SOCK_STREAM, true, true, suffix, NULL); + fd = make_unix_socket(SOCK_STREAM, true, suffix, NULL); if (fd < 0) { VLOG_ERR("%s: binding failed: %s", suffix, strerror(errno)); return errno; @@ -92,7 +92,7 @@ punix_open(const char *name OVS_UNUSED, char *suffix, return error; } - return new_fd_pstream(name, fd, punix_accept, + return new_fd_pstream(name, fd, punix_accept, NULL, xstrdup(suffix), pstreamp); } @@ -118,6 +118,7 @@ const struct pstream_class punix_pstream_class = { punix_open, NULL, NULL, - NULL + NULL, + NULL, };