Ask Your Question
0

unregister the dissector/protocol to build tshark

asked 2020-07-09 12:18:44 +0000

Nousi gravatar image

Hi,

I am trying to cross-compile the wireshark source code to build tshark binary for embedded platform. I could able to cross-compile the code but the size of the "libwireshark.so.13" is 90Mb after stripping.

I would like to know the process to unregister some of the protocols in a cleaner way.

Please, suggest the best way to unregister the dissector in the source code.

I did remove the source file entry from the epan/dissector/CMakeLists.txt but there were compilation error and lot of "undefined reference to" error.

Any help will be appreciated!.

Thanks, Nousi

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-07-09 12:41:24 +0000

grahamb gravatar image

Editing CMakeLists.txt is the only way I'm aware of, but there are dependencies between dissectors that aren't expressed in CMake so you will have to be careful in what you remove.

edit flag offensive delete link more

Comments

If 90 MB is an issue you might want to seriously consider using tcpdump instead of tshark. Capture on the embedded OS & analyze elsewhere. Or consider remote capture (e.g. RPCAP) on the device.

JeffMorriss gravatar imageJeffMorriss ( 2020-07-09 14:37:38 +0000 )edit

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2020-07-09 12:18:44 +0000

Seen: 268 times

Last updated: Jul 09 '20