[ovs-git] Open vSwitch: netflow: Use inet_open_active() to factor out some code. (master)

dev at openvswitch.org dev at openvswitch.org
Mon Nov 23 20:30:39 UTC 2009

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  af48f1dc8ce8913a967045540bcb0cc200ec007f (commit)
       via  4f2eb9a7e861da23560bb84d50685c836c195419 (commit)
       via  1901968e76429f834fa88a3494be768002089645 (commit)
       via  9ab3d9a3c24ee7132d85f5874f35ea5cb98b1588 (commit)
       via  d161c099279e9ab564636c72423268e6da69f795 (commit)
       via  83f6c0502c67ea117c73d3bbb91f9b9e0e81bf87 (commit)
      from  7ddda086a5aba2310d144847e078ef6eda67f38c (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 af48f1dc8ce8913a967045540bcb0cc200ec007f
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=af48f1dc8ce8913a967045540bcb0cc200ec007f
Author: Ben Pfaff <blp at nicira.com>
netflow: Use inet_open_active() to factor out some code.

commit 4f2eb9a7e861da23560bb84d50685c836c195419
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=4f2eb9a7e861da23560bb84d50685c836c195419
Author: Ben Pfaff <blp at nicira.com>
socket-util: Generalize tcp_open_*() to UDP, as inet_open_*().
The tcp_open_active() and tcp_open_passive() functions don't really have
any strong dependencies on TCP.  With a couple of simple changes they
can be used for UDP also.  Since this is useful for Netflow, this commit
does so.

commit 1901968e76429f834fa88a3494be768002089645
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=1901968e76429f834fa88a3494be768002089645
Author: Ben Pfaff <blp at nicira.com>
socket-util: Make TCP open function support no default port.
Until now, tcp_open_active() and tcp_open_passive() have only been used
in situations where there is a reasonable default port, e.g. OFP_TCP_PORT.
But for NetFlow there is no universal default, so enhance these functions
so that they can require the user to specify a port explicitly.

Crossported from the 'db' branch, where this is useful for JSON-RPC, which
also has no widely known port.

commit 9ab3d9a3c24ee7132d85f5874f35ea5cb98b1588
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=9ab3d9a3c24ee7132d85f5874f35ea5cb98b1588
Author: Ben Pfaff <blp at nicira.com>
netdev: New function netdev_get_ifindex().
sFlow needs the ifindex of an interface, so this commit adds a function
to retrieve it.

commit d161c099279e9ab564636c72423268e6da69f795
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=d161c099279e9ab564636c72423268e6da69f795
Author: Ben Pfaff <blp at nicira.com>
Move C compiler warning (-W) flags from CFLAGS to AM_CFLAGS.
C compiler warning options added by the "configure" script have until
now been put into CFLAGS.  However that option is supposed to be reserved
for the user under Automake rules, so move them to AM_CFLAGS.

Besides increased adherence to Automake rules, this is useful because
AM_CFLAGS can be overridden on a per-target (e.g. program or library)
basis, whereas CFLAGS cannot.  In turn, building the sFlow library (which
will be added in an upcoming commit) requires overriding the compiler
flags to avoid some warning messages.  (By modifying the warning flags, we
avoid the need to modify the sFlow library in any way.)

commit 83f6c0502c67ea117c73d3bbb91f9b9e0e81bf87
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=83f6c0502c67ea117c73d3bbb91f9b9e0e81bf87
Author: Ben Pfaff <blp at nicira.com>
acinclude.m4: Fix inconsistency.
Both ; and : are valid shell commands here, but one branch of the "if"
uses one and the other branch uses the other.  Use the same one, for
consistency's sake.


Summary of changes:
 Makefile.am           |    1 +
 acinclude.m4          |    7 +++--
 lib/netdev-linux.c    |   13 ++++++++++++
 lib/netdev-provider.h |   10 +++++++++
 lib/netdev.c          |   15 ++++++++++++++
 lib/netdev.h          |    1 +
 lib/socket-util.c     |   44 +++++++++++++++++++++++++++--------------
 lib/socket-util.h     |    4 +-
 lib/vconn-ssl.c       |    4 +-
 lib/vconn-tcp.c       |    4 +-
 ofproto/netflow.c     |   52 ++----------------------------------------------
 11 files changed, 82 insertions(+), 73 deletions(-)

Open vSwitch

More information about the git mailing list