Skip to content

Instantly share code, notes, and snippets.

@RomanHotsiy
Created January 3, 2014 17:48
Show Gist options
  • Save RomanHotsiy/8242661 to your computer and use it in GitHub Desktop.
Save RomanHotsiy/8242661 to your computer and use it in GitHub Desktop.
Wireshark DCBX HowTo

Getting the sources

You have two options to get souces:

  • use prepared tarball/archive with applied patch
  • use the latest code from version control

Using prepared tarball

Download archive file from https://db.tt/0UUO7NKb and extract sources into some folder (for example ~/wireshark). You should not apply any patches: all patches are included in archive. Goto Build steps.

Using latest code from version control

If you wish to use the latest code from version control, first ensure that you have a Subversion client (if you don't have one, install a client for your platform from https://subversion.apache.org/packages.html).
To download sources, use "svn co", e.g.

$ svn co http://anonsvn.wireshark.org/wireshark/trunk/ wireshark 

If you're behind a proxy that doesn't allow Subversion access you can use SSL:

$ svn co https://anonsvn.wireshark.org/wireshark/trunk/ wireshark

Applying a patch

Download patch-file from https://db.tt/d4R2DX8c

Linux

Then goto WireShark sources folder $ cd wiresharkand run the following comand:

$ patch -p0 -i path/to/patch-file/ws_dcbx.patch

Windows

For apply patch under windows you can use TortoiseMerge (part of TortoiseSVN http://tortoisesvn.net/). Or you can install patch on Cygwin (http://www.cygwin.com/) and act as in Linux case.

Required Libraries and Packages

Build steps

Linux

Install required libraries and packages:

sudo apt-get install build-essential automake autoconf libgtk2.0-dev libgtk-3-dev libglib2.0-dev libpcap0.8-dev flex bison

Then goto wireshark sources folder and configure your build directory:

$ ./autogen.sh

$ ./configure [options]

And finally build by running:

$ make

NOTE:: if build fails with error message all warnings being treated as errors run ./configure with option --disable-warnings-as-errors

Windows

Building Wireshark under Windows is a bit complicated. But there is a detailed Win32/64: Step-by-Step Guide on Wireshark site (http://bit.ly/WireSharkWinBuild).


Sources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment