没有合适的资源?快使用搜索试试~ 我知道了~
首页Wireshark Developer’s Guide 2.9
资源详情
资源评论
资源推荐

Wireshark Developer’s Guide
Version 2.9.0

Preface
Foreword
This book tries to give you a guide to start your own experiments into the wonderful world of
Wireshark development.
Developers who are new to Wireshark often have a hard time getting their development
environment up and running. This is especially true for Win32 developers, as a lot of the tools and
methods used when building Wireshark are much more common in the UNIX world than on
Win32.
The first part of this book will describe how to set up the environment needed to develop
Wireshark.
The second part of this book will describe how to change the Wireshark source code.
We hope that you find this book useful, and look forward to your comments.
Who should read this document?
The intended audience of this book is anyone going into the development of Wireshark.
This book is not intended to explain the usage of Wireshark in general. Please refer the Wireshark
User’s Guide about Wireshark usage.
By reading this book, you will learn how to develop Wireshark. It will hopefully guide you around
some common problems that frequently appear for new (and sometimes even advanced)
developers of Wireshark.
Acknowledgements
The authors would like to thank the whole Wireshark team for their assistance. In particular, the
authors would like to thank:
• Gerald Combs, for initiating the Wireshark project.
• Guy Harris, for many helpful hints and his effort in maintaining the various contributions on
the mailing lists.
• Frank Singleton from whose README.idl2wrs idl2wrs: Creating dissectors from CORBA IDL files is
derived.
The authors would also like to thank the following people for their helpful feedback on this
document:
1

• XXX - Please give feedback :-)
And of course a big thank you to the many, many contributors of the Wireshark development
community!
About this document
This book was developed by Ulf Lamping and updated for VS2013 by Graham Bloice
It is written in AsciiDoc.
Where to get the latest copy of this document?
The latest copy of this documentation can always be found at: https://www.wireshark.org/docs/ in
A4 PDF, US letter PDF, single HTML, and chunked HTML.
Providing feedback about this document
Should you have any feedback about this document, please send it to the authors through
wireshark-dev[AT]wireshark.org.
Typographic Conventions
The following table shows the typographic conventions that are used in this guide.
Table 1. Typographic Conventions
Style Description Example
Italic File names, folder names, and extensions C:\Development\wireshark.
Monospace
Commands, flags, and environment
variables
CMake’s -G option.
Bold
Monospace
Commands that should be run by the
user
Run cmake -G Ninja ...
[ Button ] Dialog and window buttons Press [ Launch ] to go to the Moon.
Key
Keyboard shortcut Press Ctrl+Down to move to the next
packet.
Menu Menu item
Select Go › Next Packet to move to the
next packet.
Admonitions
Important and notable items are marked as follows:
2

WARNING
This is a warning
You should pay attention to a warning, otherwise data loss might occur.
NOTE
This is a note
A note will point you to common mistakes and things that might not be obvious.
TIP
This is a tip
Tips are helpful for your everyday work using Wireshark.
Shell Prompt and Source Code Examples
Bourne shell, normal user
$ # This is a comment
$ git config --global log.abbrevcommit true
Bourne shell, root user
# # This is a comment
# ninja install
Command Prompt (cmd.exe)
>rem This is a comment
>cd C:\Development
PowerShell
PS$># This is a comment
PS$>choco list -l
3

C Source Code
#include "config.h"
/* This method dissects foos */
static int
dissect_foo_message(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree _U_, void
*data _U_)
{
Ê /* TODO: implement your dissecting code */
Ê return tvb_captured_length(tvb);
}
4
剩余268页未读,继续阅读


















安全验证
文档复制为VIP权益,开通VIP直接复制

评论1