[ovs-git] Open vSwitch: stream-ssl: Add support for Windows platform. (master)

dev at openvswitch.org dev at openvswitch.org
Tue Feb 11 17:56:01 UTC 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  5ea1366bc95d68712121c45ef1695d4edf616665 (commit)
       via  b26f46a40171859b21a00563d15d9c5a81eefb84 (commit)
       via  55489d31a66b39aa7b41ed07a19f0bd7d7fbdd11 (commit)
      from  7daaec4e04fbeced8c81c3182e1dae31952d54b3 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 5ea1366bc95d68712121c45ef1695d4edf616665
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=5ea1366bc95d68712121c45ef1695d4edf616665
Author: Gurucharan Shetty <gshetty at nicira.com>
		
stream-ssl: Add support for Windows platform.
		
This commit creates events and through poll_fd_wait_event()
associates them with socket file descriptors to get woken up
from poll_block().

Some other changes:

* Windows does not have sys/fcntl.h but has a fcntl.h
On Linux, there is fctnl.h too.

* include <openssl/applink.c> to handle different C-Runtime linking
of OVS and openssl libraries as suggested at
https://www.openssl.org/support/faq.html#PROG2

The above include will not be needed if we compile Open vSwitch with
/MD compiler option.

* SHUT_RDWR is equivalent to SD_BOTH on Windows.

Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


commit b26f46a40171859b21a00563d15d9c5a81eefb84
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=b26f46a40171859b21a00563d15d9c5a81eefb84
Author: Gurucharan Shetty <gshetty at nicira.com>
		
socket-util: error number to string for sockets.
		
For winsock2 functions, error number has to be converted to string
using FormatMessage().

Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


commit 55489d31a66b39aa7b41ed07a19f0bd7d7fbdd11
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=55489d31a66b39aa7b41ed07a19f0bd7d7fbdd11
Author: Gurucharan Shetty <gshetty at nicira.com>
		
poll-loop: Make poll_fd_wait_event() cross-platform.
		
This is helpful if we want to wait either on 'fd' for POSIX or
events for Windows.

For Windows, if both 'fd' and 'wevent' is specified, we associate
that event with the 'fd' using WSAEventSelect() in poll_block().
So any 'events' on that 'fd' will wake us up from WaitForMultipleObjects().

WSAEventSelect() does not understand  POLLIN, POLLOUT etc.  Instead the
macros it understands are FD_READ, FD_ACCEPT, FD_CONNECT, FD_CLOSE etc.
So we need to make that transition.

Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


-----------------------------------------------------------------------

Summary of changes:
 lib/poll-loop.c   |   22 +++++++++---
 lib/poll-loop.h   |    4 +--
 lib/socket-util.c |   30 +++++++++++++++++
 lib/socket-util.h |   12 +++++++
 lib/stream-ssl.c  |   96 ++++++++++++++++++++++++++++++++++++++++++++---------
 lib/util.c        |    4 +++
 6 files changed, 146 insertions(+), 22 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list