ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] Not seeing FOO Dissector in wireshark after successful build

From: Jeff Morriss <jeff.morriss.ws@xxxxxxxxx>
Date: Mon, 22 Apr 2019 14:06:07 -0500
I'd suggest running without the `sudo`.  Capture with dumpcap and analyze your protocol with your freshly-built dissector.

Or: make it a built-in dissector (in epan/dissectors/) rather than a plugin.

On Mon, Apr 22, 2019 at 12:59 PM Abhisek Techie <abhisek.study2016@xxxxxxxxx> wrote:
Hi,

Any suggestions for the below issue.As , my first dissector plugin is having issue , I am not able to proceed further.

Regards ,
Abhisek

On Sun, 21 Apr 2019, 12:01 Abhisek Techie, <abhisek.study2016@xxxxxxxxx> wrote:
Hi,

I am trying to  add FOO dissector as plugin  to wireshark .I am following  https://www.wireshark.org/docs/wsdg_html_chunked/ChDissectAdd.html link. But not seeing the dissector in wireshark after successful build in my Ubuntu 18.04.2 LTS OS.

Below are the steps I performed -
1.Created packet-foo.c - Dissector source. under /plugin/epan/foo 
2.Created CMakeLists.txt  under /plugin/epan/foo
3.Added CMakeListsCustom.txt  set(CUSTOM_PLUGIN_SRC_DIR plugins/epan/foo)
4.Built  the changes and could see foo.so getting generated in build folder
cmake -G Ninja ../wireshark
ninja 
5. Ran wireshark with sudo command , as I was not able to capture any traffic using non-root user
sudo WIRESHARK_RUN_FROM_BUILD_DIRECTORY=1 ./run/wireshark
6.Generated traffic on port 1234 using python code 
7. But don't see the protocol name as FOO in the packet list pane , it still shows UDP as the protocol .

Any suggestions  on what I am missing?

Regards,
Abhisek

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe