summaryrefslogtreecommitdiffhomepage
path: root/tests/packet_data_generator2/README
blob: 8f341709913d159895fabaa347226c5504225f1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
This directory contains a small C program to generate
OpenFlow packet binary files [1].  They are used by some of
unit tests [2].  As we have the generated files in the repository,
you don't need to build this program unless you want to (re-)generate
the files for some reasons, typically adding new test cases.

[1] tests/packet_data/of*/libofproto-*.packet
[2] tests.unit.ofproto.test_parser

The program requires libofproto library provided by Open vSwitch.
It's a little tricky to build because Open vSwitch distribution
normally does not install the corresponding C header files.  You need
both of the source distribution of Open vSwitch and matching installed
libraries, and override OVS_SRC and SRC make variables to point those
directries respectively.