Don't try to compile Unix socket related functions for Windows.
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
lib/stream-provider.h \
lib/stream-ssl.h \
lib/stream-tcp.c \
lib/stream-provider.h \
lib/stream-ssl.h \
lib/stream-tcp.c \
lib/stream.c \
lib/stream.h \
lib/stdio.c \
lib/stream.c \
lib/stream.h \
lib/stdio.c \
else
lib_libopenvswitch_la_SOURCES += \
lib/daemon.c \
else
lib_libopenvswitch_la_SOURCES += \
lib/daemon.c \
+ lib/latch.c \
+ lib/stream-unix.c
/* Attempts to shorten 'name' by opening a file descriptor for the directory
* part of the name and indirecting through /proc/self/fd/<dirfd>/<basename>.
* On systems with Linux-like /proc, this works as long as <basename> isn't too
/* Attempts to shorten 'name' by opening a file descriptor for the directory
* part of the name and indirecting through /proc/self/fd/<dirfd>/<basename>.
* On systems with Linux-like /proc, this works as long as <basename> isn't too
? sun_len - offsetof(struct sockaddr_un, sun_path)
: 0);
}
? sun_len - offsetof(struct sockaddr_un, sun_path)
: 0);
}
ovs_be32
guess_netmask(ovs_be32 ip_)
ovs_be32
guess_netmask(ovs_be32 ip_)
ds_put_format(string, "%s:%"PRIu16,
ss_format_address(&ss, addrbuf, sizeof addrbuf),
ss_get_port(&ss));
ds_put_format(string, "%s:%"PRIu16,
ss_format_address(&ss, addrbuf, sizeof addrbuf),
ss_get_port(&ss));
} else if (ss.ss_family == AF_UNIX) {
struct sockaddr_un sun;
const char *null;
} else if (ss.ss_family == AF_UNIX) {
struct sockaddr_un sun;
const char *null;
null = memchr(sun.sun_path, '\0', maxlen);
ds_put_buffer(string, sun.sun_path,
null ? null - sun.sun_path : maxlen);
null = memchr(sun.sun_path, '\0', maxlen);
ds_put_buffer(string, sun.sun_path,
null ? null - sun.sun_path : maxlen);
}
#ifdef HAVE_NETLINK
else if (ss.ss_family == AF_NETLINK) {
}
#ifdef HAVE_NETLINK
else if (ss.ss_family == AF_NETLINK) {
int check_connection_completion(int fd);
int drain_rcvbuf(int fd);
void drain_fd(int fd, size_t n_packets);
int check_connection_completion(int fd);
int drain_rcvbuf(int fd);
void drain_fd(int fd, size_t n_packets);
int make_unix_socket(int style, bool nonblock,
const char *bind_path, const char *connect_path);
int get_unix_name_len(socklen_t sun_len);
int make_unix_socket(int style, bool nonblock,
const char *bind_path, const char *connect_path);
int get_unix_name_len(socklen_t sun_len);
ovs_be32 guess_netmask(ovs_be32 ip);
int get_null_fd(void);
ovs_be32 guess_netmask(ovs_be32 ip);
int get_null_fd(void);
static const struct stream_class *stream_classes[] = {
&tcp_stream_class,
static const struct stream_class *stream_classes[] = {
&tcp_stream_class,
#ifdef HAVE_OPENSSL
&ssl_stream_class,
#endif
#ifdef HAVE_OPENSSL
&ssl_stream_class,
#endif
static const struct pstream_class *pstream_classes[] = {
&ptcp_pstream_class,
static const struct pstream_class *pstream_classes[] = {
&ptcp_pstream_class,
#ifdef HAVE_OPENSSL
&pssl_pstream_class,
#endif
#ifdef HAVE_OPENSSL
&pssl_pstream_class,
#endif