User guide

6.4. Capture Files .................................................................................91
6.5. Dissect packets ..............................................................................92
7. Introduction .............................................................................................94
7.1. Source overview ............................................................................94
7.2. Coding styleguides .........................................................................95
7.3. The GLib library ............................................................................96
8. Packet capturing .......................................................................................98
8.1. How to add a new capture type to libpcap ...........................................98
9. Packet dissection .................................................................................... 100
9.1. How it works ............................................................................... 100
9.2. Adding a basic dissector ................................................................ 101
9.2.1. Setting up the dissector ....................................................... 101
9.2.2. Dissecting the details of the protocol ..................................... 103
9.2.3. Improving the dissection information ..................................... 106
9.3. How to handle transformed data ...................................................... 109
9.4. How to reassemble split packets ...................................................... 110
9.4.1. How to reassemble split UDP packets .................................... 110
9.4.2. How to reassemble split TCP Packets .................................... 113
9.5. How to tap protocols ..................................................................... 115
9.6. How to produce protocol stats ......................................................... 116
9.7. How to use conversations .............................................................. 118
10. User Interface ....................................................................................... 120
10.1. Introduction ............................................................................... 120
10.2. The GTK library ......................................................................... 121
10.2.1. GTK Version 1.x ............................................................. 121
10.2.2. GTK Version 2.x ............................................................. 121
10.2.3. Compatibility between 1.x and 2.x ....................................... 122
10.2.4. GTK resources on the web ................................................. 122
10.3. GUI Reference documents ............................................................ 124
10.4. Adding/Extending Dialogs ........................................................... 125
10.5. Widget naming ........................................................................... 126
10.6. Common GTK programming pitfalls .............................................. 127
10.6.1. Usage of gtk_widget_show() / gtk_widget_show_all() ............ 127
A. This Document's License (GPL) ........................................................................ 129
Wireshark Developer's Guide
vii