Ask Your Question

Which package contains sharkd?

asked 2021-10-13 08:29:29 +0000

forgi007 gravatar image

On debian 10, sharkd is not installed by wireshark-common package.

~ $ dpkg -L wireshark-common  |grep sharkd
~ $

The only way I found to get it was building it from source:

git clone; cd wireshark; tools/; mkdir build; cd build; cmake -DBUILD_wireshark=OFF .. ; make ; ./run/sharkd

Then when I try to use sharkd, then I get an error:

~ $ temp/wireshark/build/run/sharkd -a tcp:
cannot initialize sharkd

Any help is appreciated.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-10-13 14:21:12 +0000

Chuckc gravatar image

updated 2021-10-13 14:25:14 +0000

debian 10 maps to "Buster"

wireshark-common:buster is wireshark-common (2.6.20-0+deb10u1) which does not include sharkd (filelist)

The debian wireshark changelog shows that sharkd was added in Wireshark 3.0.7 and newer:

wireshark (3.0.7-1) unstable; urgency=medium

  [ Balint Reczey ]
  * Build-depend on libglib2.0-dev. This is needed for backports for example
    to Ubuntu 16.04 and earlier releases.
  * Ship sharkd in wireshark-common (Closes: #943403)
  * New upstream version 3.0.7
    - security fixes:
     - CMS dissector crash. (CVE-2019-19553)
  * Update symbols files

debian 11 (Bullseye) ships wireshark-common (3.4.4-1) which include sharkd (filelist)

But it looks like sharkd only supports tcp: sockets on Windows.

#ifdef _WIN32
/* for windows support TCP sockets */
/* for other system support only local sockets */


C:\Development\wsbuild64\run\RelWithDebInfo>sharkd -a tcp:
Sharkd listening on: tcp:

The "Usage:" screen has an example based on the platform it's compiled for:

    fprintf(output, "  - unix:/tmp/sharkd.sock - listen on unix file /tmp/sharkd.sock\n");
    fprintf(output, "  - tcp: - listen on TCP port 4446\n");


C:\Development\wsbuild64\run\RelWithDebInfo>sharkd -h

Usage: sharkd [<classic_options>|<gold_options>]

Classic (classic_options):

  <socket> examples:
  - tcp: - listen on TCP port 4446

Gold (gold_options):


admin1@ubuntu1:~/wireshark/build_3.5.x/run$ ./sharkd -h

Usage: sharkd [<classic_options>|<gold_options>]

Classic (classic_options):

  <socket> examples:
  - unix:/tmp/sharkd.sock - listen on unix file /tmp/sharkd.sock

Gold (gold_options):

There is not a man page for sharkd.
Current documentation is on the wiki page and needs a blurb about platform support.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2021-10-13 08:29:29 +0000

Seen: 847 times

Last updated: Oct 13 '21