User guide

3.3.3. Buildbot Snapshots ..............................................................24
3.3.4. Released sources .................................................................25
3.4. Update the Wireshark sources ...........................................................26
3.4.1. ... with Anonymous Subversion access .....................................26
3.4.2. ... from zip files ...................................................................26
3.5. Build Wireshark .............................................................................27
3.5.1. Unix ..................................................................................27
3.5.2. Win32 native ......................................................................27
3.6. Run generated Wireshark .................................................................29
3.7. Debug your generated Wireshark ......................................................30
3.7.1. Win32 native ......................................................................30
3.8. Make changes to the Wireshark sources ..............................................31
3.9. Contribute your changes ..................................................................32
3.9.1. What is a diff file (a patch)? ...................................................32
3.9.2. Generate a patch ..................................................................33
3.9.3. Some tips for a good patch .....................................................34
3.9.4. Code Requirements ..............................................................34
3.9.5. Sending your patch for inclusion .............................................35
3.10. Apply a patch from someone else ....................................................37
3.10.1. Using patch .......................................................................37
3.10.2. CVS diff (obsolete) ............................................................37
3.11. Add a new file to the Subversion repository .......................................39
3.12. Binary packaging ..........................................................................40
3.12.1. Debian: .deb packages .........................................................40
3.12.2. Red Hat: .rpm packages .......................................................40
3.12.3. Win32: NSIS .exe installer ...................................................40
4. Tool Reference .........................................................................................43
4.1. Introduction ..................................................................................43
4.2. Win32: Cygwin .............................................................................44
4.2.1. Add/Update/Remove Cygwin Packages ...................................44
4.3. GNU compiler toolchain (UNIX or Win32 Cygwin) .............................45
4.3.1. gcc (GNU compiler collection) ...............................................45
4.3.2. gdb (GNU project debugger) ..................................................45
4.3.3. ddd (GNU Data Display Debugger) .........................................45
4.3.4. make (GNU Make) ..............................................................46
4.4. Microsoft compiler toolchain (Win32 native) .......................................47
4.4.1. Toolchain Package Alternatives ..............................................47
4.4.2. Legal issues with MSVC > V6? ..............................................49
4.4.3. cl.exe (C Compiler) ..............................................................50
4.4.4. nmake.exe (Make) ...............................................................51
4.4.5. link.exe (Linker) ..................................................................51
4.4.6. C-Runtime "Redistributable" files ...........................................51
4.4.7. Windows (Platform) SDK .....................................................53
4.4.8. HTML Help ........................................................................53
4.4.9. Debugger ...........................................................................54
4.5. bash .............................................................................................55
4.5.1. UNIX or Win32 Cygwin: GNU bash .......................................55
4.5.2. Win32 native: - ...................................................................55
4.6. python ..........................................................................................56
4.6.1. UNIX or Win32 Cygwin: python ............................................56
4.6.2. Win32 native: python ...........................................................56
4.7. perl ..............................................................................................57
4.7.1. UNIX or Win32 Cygwin: perl ................................................57
4.7.2. Win32 native: perl ...............................................................57
4.8. sed ..............................................................................................58
4.8.1. UNIX or Win32 Cygwin: sed .................................................58
4.8.2. Win32 native: sed ................................................................58
4.9. yacc (bison) ..................................................................................59
4.9.1. UNIX or Win32 Cygwin: bison ..............................................59
4.9.2. Win32 native: bison .............................................................59
4.10. flex ............................................................................................60
4.10.1. UNIX or Win32 Cygwin: flex ..............................................60
4.10.2. Win32 native: flex ..............................................................60
Wireshark Developer's Guide
v