Open vSwitch
Clone or download
Bhargava Shastry and blp ossfuzz: Add ofctl parse target
This patch adds a new target called ofctl_parse_target to
ossfuzz. The main idea is to begin to fuzz APIs from the ofctl utility
program. At a later point, these may be added. For the moment, this patch
only fuzzes APIs that parse flow mod commands.

This target is demonstrably capable of finding memory corruption defects
in the parsing path. To aid the fuzzing process, a dictionary file
containing tokens specific to this parsing path have been added.

Signed-off-by: Bhargava Shastry <>
Signed-off-by: Ben Pfaff <>
Latest commit aa1a0f1 Oct 15, 2018
Failed to load latest commit information.
.travis dpdk: Use DPDK 17.11.4 release. Oct 19, 2018
Documentation dpdk: Use DPDK 17.11.4 release. Oct 19, 2018
build-aux dhparams: Fix .c file generation with OpenSSL >= 1.1.1-pre9 Sep 7, 2018
datapath-windows datapath-windows: Move OVS_IPHELPER_INSTANCE to IpHelper.h Oct 2, 2018
datapath datapath: Use correct reply values in datapath and vport ops Oct 17, 2018
debian Set release dates for 2.10.0. Sep 18, 2018
include bundle: add symmetric_l3 hash method for multipath Oct 2, 2018
lib odp-util: Move ufid handling to odp_flow_from_string Oct 23, 2018
m4 m4: handle configuring with PYTHON="/usr/bin/env python" etc Oct 3, 2018
ofproto connmgr: Fix vswitchd abort when a port is added and the controller i… Oct 23, 2018
ovn OVN: add buffering support for ip packets Oct 18, 2018
ovsdb condition: Reject <, <=, >=, > with optional scalar against empty set. Oct 4, 2018
poc rhel: rename openvswitch kmod rhel6 spec file Jul 13, 2018
python Revert "Test the Python C JSON extension" Oct 15, 2018
rhel rhel: fix wrong condition check for, fedora Sep 26, 2018
selinux selinux: more changes to support newer hugetlbfs restrictions Jul 31, 2018
tests ossfuzz: Add ofctl parse target Oct 23, 2018
third-party doc: Remove documentation from distdoc target Dec 12, 2016
tutorial ovs-sandbox: Generate the SSL keys using the default key length Aug 10, 2018
utilities ovs-save: Parse geneve tlv map correctly. Oct 8, 2018
vswitchd revalidator: Rebalance offloaded flows based on the pps rate Oct 19, 2018
vtep tests: Use environment variable for default timeout. Aug 15, 2018
windows MSI: Use platform specific netcfg location Jan 5, 2018
xenserver treewide: Convert leading tabs to spaces. Jun 11, 2018
.gitignore build: Add gitattribute file to build-aux Jul 19, 2018
.mailmap .mailmap: Document file format. Nov 17, 2016
.travis.yml datapath: Fix builds on older kernels. Aug 30, 2018
AUTHORS.rst AUTHORS: Update or remove all Nicira email addresses. Oct 3, 2018
CONTRIBUTING.rst CONTRIBUTING.rst: Fix links. Mar 17, 2017
LICENSE Edit Open vSwitch license info so that GitHub recognizes it. Apr 16, 2018
MAINTAINERS.rst MAINTAINERS: Update Pravin's email address. Dec 28, 2017 oss-fuzz: Move oss-fuzz test harnesses and fuzzer configs to ovs sour… Aug 24, 2018
NEWS revalidator: Rebalance offloaded flows based on the pps rate Oct 19, 2018
NOTICE datapath-windows: Add Connection Tracking Support Apr 14, 2016
README.rst Edit Open vSwitch license info so that GitHub recognizes it. Apr 16, 2018
Vagrantfile treewide: Convert leading tabs to spaces. Jun 11, 2018
Vagrantfile-FreeBSD vagrant: Add FreeBSD 10.2 box support. Jul 3, 2016
acinclude.m4 netdev-linux: Don't include <net/if_packet.h>. Oct 3, 2018
appveyor.yml util: Fix abs_file_name() bugs on Windows. Aug 3, 2018 debian: Check for accurate Debian changelog version at build time too. Jul 21, 2010 netdev-linux: Don't include <net/if_packet.h>. Oct 3, 2018 dpif-netdev-perf: Clarify frequency number. Oct 12, 2018


Open vSwitch

What is Open vSwitch?

Open vSwitch is a multilayer software switch licensed under the open source Apache 2 license. Our goal is to implement a production quality switch platform that supports standard management interfaces and opens the forwarding functions to programmatic extension and control.

Open vSwitch is well suited to function as a virtual switch in VM environments. In addition to exposing standard control and visibility interfaces to the virtual networking layer, it was designed to support distribution across multiple physical servers. Open vSwitch supports multiple Linux-based virtualization technologies including Xen/XenServer, KVM, and VirtualBox.

The bulk of the code is written in platform-independent C and is easily ported to other environments. The current release of Open vSwitch supports the following features:

  • Standard 802.1Q VLAN model with trunk and access ports
  • NIC bonding with or without LACP on upstream switch
  • NetFlow, sFlow(R), and mirroring for increased visibility
  • QoS (Quality of Service) configuration, plus policing
  • Geneve, GRE, VXLAN, STT, and LISP tunneling
  • 802.1ag connectivity fault management
  • OpenFlow 1.0 plus numerous extensions
  • Transactional configuration database with C and Python bindings
  • High-performance forwarding using a Linux kernel module

The included Linux kernel module supports Linux 3.10 and up.

Open vSwitch can also operate entirely in userspace without assistance from a kernel module. This userspace implementation should be easier to port than the kernel-based switch. OVS in userspace can access Linux or DPDK devices. Note Open vSwitch with userspace datapath and non DPDK devices is considered experimental and comes with a cost in performance.

What's here?

The main components of this distribution are:

  • ovs-vswitchd, a daemon that implements the switch, along with a companion Linux kernel module for flow-based switching.
  • ovsdb-server, a lightweight database server that ovs-vswitchd queries to obtain its configuration.
  • ovs-dpctl, a tool for configuring the switch kernel module.
  • Scripts and specs for building RPMs for Citrix XenServer and Red Hat Enterprise Linux. The XenServer RPMs allow Open vSwitch to be installed on a Citrix XenServer host as a drop-in replacement for its switch, with additional functionality.
  • ovs-vsctl, a utility for querying and updating the configuration of ovs-vswitchd.
  • ovs-appctl, a utility that sends commands to running Open vSwitch daemons.

Open vSwitch also provides some tools:

  • ovs-ofctl, a utility for querying and controlling OpenFlow switches and controllers.
  • ovs-pki, a utility for creating and managing the public-key infrastructure for OpenFlow switches.
  • ovs-testcontroller, a simple OpenFlow controller that may be useful for testing (though not for production).
  • A patch to tcpdump that enables it to parse OpenFlow messages.

What other documentation is available?

To install Open vSwitch on a regular Linux or FreeBSD host, please read the installation guide. For specifics around installation on a specific platform, refer to one of the other installation guides

For answers to common questions, refer to the FAQ.

To learn about some advanced features of the Open vSwitch software switch, read the tutorial.

Each Open vSwitch userspace program is accompanied by a manpage. Many of the manpages are customized to your configuration as part of the build process, so we recommend building Open vSwitch before reading the manpages.


The following is a summary of the licensing of files in this distribution. As mentioned, Open vSwitch is licensed under the open source Apache 2 license. Some files may be marked specifically with a different license, in which case that license applies to the file in question.

Files under the datapath directory are licensed under the GNU General Public License, version 2.

File build-aux/cccl is licensed under the GNU General Public License, version 2.

The following files are licensed under the 2-clause BSD license.
include/windows/getopt.h lib/getopt_long.c lib/conntrack-tcp.c
The following files are licensed under the 3-clause BSD-license
include/windows/netinet/icmp6.h include/windows/netinet/ip6.h lib/strsep.c

Files under the xenserver directory are licensed on a file-by-file basis. Refer to each file for details.

Files lib/sflow*.[ch] are licensed under the terms of either the Sun Industry Standards Source License 1.1, that is available at:
or the InMon sFlow License, that is available at: