source: examples/tutorial/README

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file was 8835f5a, checked in by Shane Alcock <salcock@…>, 11 years ago
  • Added the code examples from the PDCAT tutorial to the bundled examples
  • Property mode set to 100644
File size: 1.7 KB
Line 
1The source files in this directory are copies of the programs that were
2written for the Libtrace tutorial presented at PDCAT'08. Each demonstrates
3a different feature of the Libtrace programming API, often by building upon
4the previous examples.
5
6The slides that accompany these programs can be found at
7http://wand.net.nz/trac/libtrace/wiki/PDCAT08
8
9Below is a full list of the examples in order of increasing complexity, along
10with a brief description of the API features that are covered by each program.
11
12
13createdemo:     
14        Demonstrates how to create and start an input trace, plus how to detect
15        and handle errors with trace files.
16
17readdemo:
18        Demonstrates how to read packets from an input trace.
19
20timedemo:
21        Demonstrates how to get and use timestamps from packets.
22
23lengthdemo:
24        Demonstrates how to get and use the different packet size measurements.
25
26sourcedemo:
27        Demonstrates how to use the port, IP address and MAC address access
28        functions.
29
30gettcpdemo:
31        Demonstrates how to use the protocol access functions.
32
33writedemo:
34        Demonstrates how to create and start an output traces, and how to
35        write packets to the output trace.
36
37filterdemo:
38        Demonstrates how to use BPF filters within Libtrace.
39
40configdemo:
41        Demonstrates how to use the configuration system to configure both
42        input and output traces before starting them.
43
44httpcount:
45        Demonstrates how to use the generic trace_get_transport function
46        rather than the shortcut trace_get_tcp shown in gettcpdemo
47
48mplscount:
49        Demonstrates how to access a second link layer header using
50        trace_get_payload_from_layer2
51
52mplstag:
53        Demonstrates how to iterate through multiple link layer headers.
54
55headerdemo:
56        A much more complicated tool that puts a lot of the previously
57        demonstrated concepts together to create a useful tool.
Note: See TracBrowser for help on using the repository browser.