2
0
mirror of https://github.com/openvswitch/ovs synced 2025-09-04 08:15:25 +00:00
Commit Graph

19894 Commits

Author SHA1 Message Date
Ben Pfaff
fc7ecc6671 xenserver: Fix fallout from removing remote command execution.
Commit 2280e7223 "ofproto: Drop remote command execution feature." removed
the remote command execution feature from the vswitch.  This commit removes
one bit that was overlooked.
2010-01-08 10:41:48 -08:00
Ben Pfaff
48b9616a51 configure: Fix indentation. 2010-01-08 10:02:49 -08:00
Ben Pfaff
869decd4fe tests: Make test-vconn build and pass tests without OpenSSL. 2010-01-08 10:01:27 -08:00
Ben Pfaff
d27ce5292c tests: Improve vconn tests. 2010-01-08 09:41:29 -08:00
Ben Pfaff
1504c76330 stream-ssl: Fix bug that crept in during rebasing. 2010-01-08 09:40:45 -08:00
Ben Pfaff
4c4d10b13f Distribute some forgotten files that are needed by "make check". 2010-01-07 16:13:34 -08:00
Ben Pfaff
dc68127607 vconn: Test SSL vconns too.
This test should help avoid simple bugs in the SSL vconn and SSL stream
implementations in the future.  It would have found the bugs fixed by
recent commits.
2010-01-07 15:00:51 -08:00
Ben Pfaff
557092898d stream: Really enable SSL streams.
SSL streams were supposed to work, but they didn't.  Oops.
2010-01-07 15:00:51 -08:00
Ben Pfaff
2b494771fd stream-ssl: Fix ssl_recv() and ssl_send() return value semantics.
These functions' return value semantics did not match those documented
in stream-provider.h.
2010-01-07 15:00:51 -08:00
Ben Pfaff
5e4641a147 stream-ssl: Try to shut SSL connections down gracefully.
It's nice to shut down SSL connections gracefully when we can.
2010-01-07 15:00:51 -08:00
Ben Pfaff
42967038cb stream: Make passive SSL and TCP streams report bound addresses as names.
The names of passive SSL and TCP streams were being poorly reported: TCP
always simply reported "ptcp", and SSL reported whatever was passed in.
This commit makes them report the addresses that were actually bound by
the TCP/IP stack, which is more useful for testing, debugging, and logging.
2010-01-07 15:00:51 -08:00
Ben Pfaff
36775dad35 socket-util: Make inet_open_passive() pass back the bound address.
This feature is useful in an upcoming commit.
2010-01-07 15:00:47 -08:00
Ben Pfaff
e1bd3bee5c socket-util: Allow binding without a port number in inet_open_passive().
The test-vconn program binds a socket to a nonspecific port number.  To
add SSL support to this program, it needs to be able to use SSL, and the
stream library is the easiest way to do that.  But the stream library
can't bind to a nonspecific port.  This commit adds that feature, by adding
it to the function that the stream SSL library uses as a building block.
2010-01-07 11:12:36 -08:00
Ben Pfaff
250382a8fc Remove "fault" module.
This module, which catches segmentation faults and prints a backtrace
before exiting, was useful for a while, but I believe that it has now
outlived its purpose.  It is altogether better to have a core dump from
which one can extract much more information than a usually-poor backtrace,
and core dumps are much better integrated into a typical Unix system.
In addition, the "fault" module was of course not all that portable.
2010-01-06 17:01:56 -08:00
Ben Pfaff
6f61c75b17 ovs-vswitchd: Add ability to bootstrap SSL. 2010-01-06 14:35:21 -08:00
Ben Pfaff
fe55ad159d vconn: Reimplement in terms of the "stream" abstraction.
This reduces the amount of redundancy in the source tree, by making all of
the current implementations of a vconn simply delegate to the "stream"
abstraction.
2010-01-06 14:35:20 -08:00
Ben Pfaff
108496163d stream: Remove spurious #includes from header file. 2010-01-06 14:32:22 -08:00
Ben Pfaff
9467fe6246 Add SSL support to "stream" library and OVSDB. 2010-01-06 14:30:29 -08:00
Ben Pfaff
d474bd01bb poll-loop: Drop unused poll_fd_callback() feature.
The last user of this feature has been removed, so delete the feature too,
simplifying poll-loop.c significantly.

poll_cancel() is no longer used, either, but deleting it is much less
beneficial.
2010-01-06 14:28:54 -08:00
Ben Pfaff
60cb3eb8b2 vconn: Convert vconn code to modern OVS structure.
The vconn code is a relative fossil as OVS code goes.  It was written
before we had really figured how code should fit together.  Part of that
history is that it used poll_fd_callback() to register callbacks without
the assistance of other code.  That isn't how the rest of OVS works now;
this code is the only remaining user of that function.

To make it more like the rest of the system, this code gets rid of the use
of poll_fd_callback().  It also adds vconn_run() and vconn_run_wait()
functions and calls to them from the places where they are now required.
2010-01-06 14:27:46 -08:00
Ben Pfaff
539e96f623 stream: Add stream_run(), stream_run_wait() functions.
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.
2010-01-06 14:26:48 -08:00
Ben Pfaff
e0668bd1d4 Check invariants earlier in vconn and stream code.
These invariants are checked by vconn_open() and stream_open(), but there
is no reason not to check them earlier also.  vconn and stream creation
don't have to go through vconn_open() and stream_open(), so this ensures
that the invariants get checked either way.
2010-01-06 14:20:19 -08:00
Ben Pfaff
84ee7bcfde Factor vconn and SSL documentation into manpage include files. 2010-01-06 14:10:54 -08:00
Ben Pfaff
78f172aa4e Add runtime test that strtok_r() bug fix works.
Our bug fix for glibc's strtok_r() bug was not effective in distribution
tarballs.  This new test should catch that problem earlier in case it
recurs.
2010-01-06 10:01:19 -08:00
Ben Pfaff
5946246555 Include lib/string.h in "make dist"-generated tarballs.
This file was missing from distributions.  Its lack prevented the
strtok_r() fix from working on systems that need it.

Reported-by: Tetsuo NAKAGAWA <nakagawa@mxc.nes.nec.co.jp>
2010-01-06 10:01:19 -08:00
Jesse Gross
d8b3070205 fatal-signal: Run signal hooks outside of actual signal handlers.
Rather than running signal hooks directly from the actual signal
handler, simply record the fact that the signal occured and run
the hook next time around the poll loop.  This allows significantly
more freedom as to what can actually be done in the signal hooks.
2010-01-06 09:11:58 -05:00
Justin Pettit
e26b5a068c ovs-vsctl: Add support for extended vlog options
The man page states that ovs-vsctl supports extended vlog options (e.g.,
--log-file), but the executable did not.  This commit adds it.
2010-01-05 00:10:17 -08:00
Justin Pettit
1b656aa878 vconn: Add comment describing usage of VCONN_SSL_LONG_OPTIONS 2010-01-05 00:08:34 -08:00
Justin Pettit
87c8489148 Add extended vlog options to utilities
The ovs-discover, ovs-dpctl, and ovs-ofctl man pages indicated that they
supported extended vlog options (e.g., --log-file), but they actually
did not.  This commit adds them.

Reported by Tetsuo NAKAGAWA <nakagawa@mxc.nes.nec.co.jp>
2010-01-04 18:55:00 -08:00
Tetsuo NAKAGAWA
84f7e9b6d0 ofproto: Fix segfault when changing command execution settings
If the remote command execution settings are changed and a NULL argument
is given for the directory, a crash would occur.  With this change, the
default directory is used.
2010-01-04 18:19:47 -08:00
Justin Pettit
e9fec732de xenserver: Fix small typo in vswitch-xapi-update 2010-01-04 16:33:49 -08:00
Ben Pfaff
0a9126739b Fix documented name of key used to disable MAC learning on a VLAN.
The code uses "disable-learning" but the documentation claimed that it
was "learning-disable".
2010-01-04 15:01:41 -08:00
Justin Pettit
8f3a29be91 datapath: Add missing definitions for building GRE on older kernels 2010-01-04 14:07:26 -08:00
Ben Pfaff
c475ae6720 ofproto: Get rid of unused parameter to ofconn_destroy(). 2010-01-04 13:21:32 -08:00
Ben Pfaff
67b732e885 ovs-openflowd: Don't pass extra argument to printf(). 2010-01-04 13:21:13 -08:00
Ben Pfaff
a0d172519c ovsdb-server: Fix minor memory leak.
Noticed by Justin Pettit.
2010-01-04 13:13:12 -08:00
Ben Pfaff
72b0630028 Initial implementation of sFlow.
Tested very slightly with "ping" and "sflowtool -t | tcpdump -r -".
2010-01-04 13:08:37 -08:00
Ben Pfaff
2280e7223c ofproto: Drop remote command execution feature.
At one point Nicira had deployment plans for which adding a remote command
execution feature to the OpenFlow stack made a lot of sense.  We no longer
have those plans, as far as I know, and leaving the feature in seems like
a huge potential security hole.  So this commit blows away the entire
feature.
2010-01-04 10:09:27 -08:00
Ben Pfaff
0b1fae1b73 ovsdb-server: Make database connections configurable from database itself.
Most importantly this adds a "managers" column to the vswitch database
that specifies where the ovsdb-server should connect.
2010-01-04 10:05:51 -08:00
Ben Pfaff
4931f33ad9 ovsdb-server: Factor out complication by using jsonrpc_session. 2010-01-04 09:47:01 -08:00
Ben Pfaff
a85c0bbcfd reconnect: Add connection attempt limiting feature.
Sometimes it is useful to limit the number of connection attempts, either
from policy or because it is not possible to reconnect at all (e.g. because
a connection was accepted from a listening socket instead of made with
connect()).  This commit adds that feature.
2010-01-04 09:47:01 -08:00
Ben Pfaff
b8781ff08d daemon: Don't ignore failed write to pipe.
If the write to the pipe fails here then the parent will think that the
child failed to start up, so the child should oblige it by bailing out.
2010-01-04 09:47:01 -08:00
Ben Pfaff
622ee2cf64 netdev: New functions for interpreting "enum ofp_port_features" bitmaps. 2009-12-21 16:28:01 -08:00
Ben Pfaff
c72e245a0e Add InMon's sFlow Agent library to the build system.
The C source and header files added in this commit is covered under the
InMon sFlow license at http://www.inmon.com/technology/sflowlicense.txt

The library requires -Wno-unused to compile without warnings, so this
commit adds that for building the sFlow code only.  Automake can only
change compiler flags on a per-library or per-program basis, so sFlow
is built as a separate library.

The library will be used in upcoming commits.
2009-12-21 13:18:35 -08:00
Justin Pettit
7f1bfcfe29 xenserver: Use ovs-appctl to reopen log files
During the changes to use the configuration database the "reload"
command was removed from the init script.  In addition to reloading the
configuration file, binaries also reopened their log files, which is the
behavior the logrotate configuration expected.  This change makes the
logrotate configuration no longer user the "reload" command.
2009-12-20 22:05:22 -08:00
Justin Pettit
d3a8012b60 Remove cfg library
A few places in bridge.c still reference the old cfg library, but they
were commented out a while back.  This removes the library, since we've
now switched over to a configuration database.
2009-12-20 22:05:22 -08:00
Justin Pettit
f95c85e28c xenserver: Use ovs-vsctl for controller configuration in xsconsole 2009-12-20 22:05:22 -08:00
Justin Pettit
dd8ac6fe86 ovs-vsctl: Support configuring SSL. 2009-12-20 22:05:22 -08:00
Justin Pettit
975ac53133 ovs-vsctl: Don't allow controller configuration on fake bridges
Fake bridges can't have controller configuration separate from its
parent, so prevent this from happening.

Thanks to Ben Pfaff for pointing out the problem.
2009-12-20 22:05:18 -08:00
Justin Pettit
11aa56278b ovs-vsctl: Fix minor typo in error message 2009-12-18 14:46:02 -08:00