File: library_pcap.rst

package info (click to toggle)
ryu 4.4%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 22,784 kB
  • ctags: 19,167
  • sloc: python: 94,448; erlang: 14,517; ansic: 594; sh: 418; makefile: 152
file content (27 lines) | stat: -rw-r--r-- 598 bytes parent folder | download | duplicates (2)
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
*****************
PCAP file library
*****************

Introduction
============

Ryu PCAP file library helps you to read/write PCAP file which file
format are described in `The Wireshark Wiki`_.

.. _The Wireshark Wiki: https://wiki.wireshark.org/Development/LibpcapFileFormat

Reading PCAP file
=================

For loading the packet data containing in PCAP files, you can use
pcaplib.Reader.

.. autoclass:: ryu.lib.pcaplib.Reader

Writing PCAP file
=================

For dumping the packet data which your RyuApp received, you can use
pcaplib.Writer.

.. autoclass:: ryu.lib.pcaplib.Writer