First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

unregister the dissector/protocol to build tshark

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

Nousi's avatar
1
Nousi
asked 2020-07-09 12:18:44 +0000
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

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.

grahamb's avatar
23.8k
grahamb
answered 2020-07-09 12:41:24 +0000
edit flag offensive 0 remove flag delete link

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's avatar JeffMorriss (2020-07-09 14:37:38 +0000) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer