First time here? Check out the FAQ!

Ask Your Question
0

Custom ecpri dissector based on original implementation

asked Apr 15 '4

updated Apr 15 '4

grahamb gravatar image

Hello,

I need some modification to basic epan/dissectors/packet-ecpri.c implementation so i thought eses way to pull it will be:

do modification in packet-ecpri.c

compile plugins target

Copy lib .so file to current wireshark installation "/usr/lib/x86_64-linux-gnu/wireshark/plugins/4.0/epan" but using nm -D i have checked all libs for "proto_register_ecpri" symbol and it is not there, so in which library this object /build/epan/dissectors/CMakeFiles/dissectors.dir/packet-ecpri.c.o is linked, and where it is located on ubuntu 22.04 installation so i can switch it after compilation or i'm completely wrong and this is not right approach ?

Preview: (hide)

Comments

epan/dissectors/packet-ecpri.c is not forgotten commits.
If your "some modification" would benefit others you could open a Enhancement Request.

Before attempting to modify the .so have you gone through the UN*X build process?
Once that is successful and if the change benefits others you could make a merge request 3.9. Make Changes To The Wireshark Sources.

Chuckc gravatar imageChuckc ( Apr 15 '4 )

I am curious about the changes you need to make. I made it call the ORAN FH CUS dissector for the message types it handles (discarding my company's eCPRI dissector).

MartinM gravatar imageMartinM ( Apr 16 '4 )

1 Answer

Sort by » oldest newest most voted
0

answered Apr 18 '4

Thanks Chuck I was able to build and install modified wireshark and it works. About my changes it only for debug purpose, i have some custom payload on message type four, and instead manual inspection on raw data i would like to have additional subtree and fields to ease my work.

Preview: (hide)
link

Comments

i would like to have additional subtree and fields to ease my work

It may be easier/quicker with a Lua script. Iterative changes without needing a recompile.
("quicker" depends on time to spin up on Lua language. :-) )

Chuckc gravatar imageChuckc ( Apr 18 '4 )

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

Stats

Asked: Apr 15 '4

Seen: 153 times

Last updated: Apr 18 '24