socket-util: Log the kernel assigned port number when asked.
authorGurucharan Shetty <gshetty@nicira.com>
Mon, 19 May 2014 18:58:14 +0000 (11:58 -0700)
committerGurucharan Shetty <gshetty@nicira.com>
Wed, 28 May 2014 15:34:28 +0000 (08:34 -0700)
commitb52ecd9610172eeb6baac55047ea4926d6af076c
tree7057a08e4145b2e1ed05b92d1b6fb0846e4c7756
parent5e3ee29da191753d2c5ed72b75d4978f694d0f0a
socket-util: Log the kernel assigned port number when asked.

So far, we log the kernel assigned port number when the port number is
not specified. On Windows, this happens multiple times because "unix"
sockets are implemented internally via TCP ports. This means that many tests,
specially the ovs-ofctl monitor tests, need to filter out the
additional messages. Doing that is not a big deal, but I think it will
keep manifesting in future tests added by Linux developers.

With this commit, we simply don't print the kernel assigned TCP ports
on Windows when done for "unix" sockets.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/socket-util.c
lib/socket-util.h
lib/stream-ssl.c
lib/stream-tcp.c
tests/ofproto-dpif.at
tests/ofproto-macros.at
tests/ovsdb-idl.at
tests/ovsdb-server.at
tests/test-netflow.c
tests/test-sflow.c