aboutsummaryrefslogtreecommitdiff
path: root/lib/stream.h
AgeCommit message (Collapse)Author
2013-10-01Don't differentiate between TCP and SSL ports for OpenFlow and OVSDB.Justin Pettit
The OVS code has always made a distinction between the unencrypted (TCP) and SSL port numbers for the OpenFlow and OVSDB protocols. The default port numbers for both protocols has changed, and there continues to be no distinction between the unencrypted and SSL versions. This commit removes the distinction in port numbers. A future patch will recognize the change in default port number. Signed-off-by: Justin Pettit <jpettit@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
2013-04-18ovsdb-server: Announce bound listening ports as status:bound_port.Ben Pfaff
The administrator can request that OVSDB bind any available TCP port, but in that case there is no easy way to find out what port it has bound. This commit adds that information as the "bound_port" key in the "status" column. Signed-off-by: Ben Pfaff <blp@nicira.com>
2012-09-26pstream: Add set_dscp method.Isaku Yamahata
Introduce set_dscp method to pstream. This will be used by dynamic dscp change of listening socket. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Ben Pfaff <blp@nicira.com>
2012-05-02Global replace of Nicira Networks.Raju Subramanian
Replaced all instances of Nicira Networks(, Inc) to Nicira, Inc. Feature #10593 Signed-off-by: Raju Subramanian <rsubramanian@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
2012-04-12stream: By default disable probing on unix sockets.Ethan Jackson
There isn't a lot of value in sending inactivity probes on unix sockets. This patch changes the default to disable them. Signed-off-by: Ethan Jackson <ethan@nicira.com>
2012-03-23Allow configuring DSCP on controller and manager connections.Mehak Mahajan
The changes allow the user to specify a separate dscp value for the controller connection and the manager connection. The value will take effect on resetting the connections. If no value is specified a default value of 192 is chosen for each of the connections. Feature #10074 Requested-by: Rajiv Ramanathan <rramanathan@nicira.com> Signed-off-by: Mehak Mahajan <mmahajan@nicira.com>
2011-12-19vswitchd: In-band rules for Controller are missing after executing ↵Ansis Atteka
force-reload-kmod command In current implementation vswitchd adds Controller in-band rules only if there is a route in kernel routing table that might route traffic to the Controller. But, when executing force-reload-kmod command, network configuration (e.g. assigned IP addresses, routes) are flushed away, hence Controller in-band rules are not added. This commit fixes this limitation and allows vswitchd to add Controller in-band rules even if there are no routes in the kernel routing table. Issue: #8625 Signed-off-by: Ansis Atteka <aatteka@nicira.com>
2011-02-23stream: Make stream_report_content() tolerate negative size.Ben Pfaff
A negative size probably means that a system call failed. The caller could set that to 0 but we might as well just tolerate it in stream_report_content() by making the parameter type signed. Coverity #10718.
2010-11-29Convert stream and vconn interfaces to use ovs_be16, ovs_be32.Ben Pfaff
2010-07-21vlog: Make the vlog module catalog program-specific.Ben Pfaff
Until now, the collection of vlog modules supported by a given OVS program was not specific to that program. That means that, for example, even though ovs-dpctl does not have anything to do with jsonrpc, it still has a vlog module for it. This is confusing, at best. This commit fixes the problem on some systems, in particular on ones that use GCC and the GNU linker. It uses the feature of the GNU linker described in its manual as: If an orphaned section's name is representable as a C identifier then the linker will automatically see PROVIDE two symbols: __start_SECNAME and __end_SECNAME, where SECNAME is the name of the section. These indicate the start address and end address of the orphaned section respectively. Systems that don't support these features retain the earlier behavior. This commit also fixes the annoyance that modifying lib/vlog-modules.def causes all sources files that #include "vlog.h" to recompile.
2010-05-11Diagnose attempts to connect the wrong protocol to a network port.Ben Pfaff
Sometimes, when a user asks me to help debug a problem, it turns out that an SSL connection was being made on a TCP port, or vice versa, or that an OpenFlow connection was being made on a JSON-RPC port, or vice versa, and so on. This commit adds log messages that diagnose this kind of problem, e.g. "tcp:127.0.0.1:6633: received JSON-RPC data on OpenFlow channel".
2010-04-20stream: Fix typo in comment.Ben Pfaff
2010-04-12vconn-stream: Factor out port defaults into public helper functions.Ben Pfaff
These functions will be used elsewhere in an upcoming commit.
2010-04-12stream: Generalize stream_open_block().Ben Pfaff
This change makes it possible to separate opening a stream from blocking on connection completion. This avoids some code redundancy in an upcoming commit.
2010-04-12stream: New functions stream_verify_name() and pstream_verify_name().Ben Pfaff
These functions can be useful for checking whether a given name is an active or passive connection method. The implementation is cut-and-paste from vconn_verify_name() and pvconn_verify_name().
2010-01-06stream: Remove spurious #includes from header file.Ben Pfaff
2010-01-06Add SSL support to "stream" library and OVSDB.Ben Pfaff
2010-01-06stream: Add stream_run(), stream_run_wait() functions.Ben Pfaff
SSL, which will be added in an upcoming commit, requires some background processing, which is best done in a "run" function in our architecture. This commit adds stream_run() and stream_run_wait() and calls to them from the places where they will be required.
2009-11-12stream: New function pstream_accept_block().Ben Pfaff
2009-11-04stream: New library for bidirectional streams (e.g. TCP, SSL, Unix sockets).Ben Pfaff
This code is heavily based on the vconn code. Eventually we should make the stream-based vconns (currently that's all of them) a wrapper around streams, but I haven't done that yet. SSL is not implemented yet.