-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME
54 lines (40 loc) · 1.48 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
WHAT: OpenFlow dump Analyzer/tracing
---------------------------
Take as input a libpcap formated file (i.e., from tcpdump/wireshark) and
output useful statistics about the OpenFlow session (defaults to port 6633)
liboftrace is available as a C library (liboftrace.{a,so}) and by higher
level programing languages, e.g., python, via swig.
HOW to build:
------------------------------
[if there is no ./configure script, i.e., building from git]
./boot.sh
./configure
OR
./configure --with-openflow-src-dir=/path/to/openflow/src
make
make install
to clean up all of the created files, run (mostly for developers):
./mr_proper.sh
TOOLS:
-----------------------------------
Included are two sample/example tools, written in both C and python:
ofdump: (python version: pyofdump.py)
lists the messages and timestamps from a libpcap file
ofstats: (python version: pyofstats.py)
prints the controller processing delay, i.e., the
time between packet_in and corresponding packet_out or
flow_mod
Mac OS X support
----------------
liboftrace has been tested with Mac OS X. SWIG is required to build Python
support. It is recommended to use the MacPorts package management system to
install SWIG.
SWIG can be installed via MacPorts as follows:
1. Download the latest version MacPorts
(http://www.macports.org/install.php)
2. Install MacPorts
3. Open a terminal window and run:
sudo port -v selfupdate
sudo port install swig-python
------------------------------
- capveg 03/09