Ask Your Question

Register routine, register_tap_listener, register_wtap_module, register_codec_module routines

asked 2018-12-20 16:39:42 +0000

JCAMP gravatar image

updated 2018-12-20 19:56:31 +0000

Guy Harris gravatar image

I've followed chapter 9 to the end of 9.2 in the developers guide for writing plugins, but I get the error "The plugin lib has neither a register routine, a register_tap_listener or a register_wtap_module or a register_codec_module routine. I'm using wireshark 2.6 on Linux Red Hat 7.5. There isn't any mention of this info in the tutorial, so all I've got is the code specified in that. I'm writing in C.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-12-20 17:09:20 +0000

grahamb gravatar image

Section 9.2.1 in the guide has the registration routine, proto_register_foo(), have you somehow omitted that from your source?

Note it must be named in that form, void proto_register_xxx(void) as a build tool scans for such functions and creates the code to call the registration functions.

edit flag offensive delete link more


Hi. Yes I've got that routine in my code. Do I simply add the lib file into usr/local/lib/wireshark/plugins/2.6/epan/ or am I missing something?

JCAMP gravatar imageJCAMP ( 2018-12-20 17:20:57 +0000 )edit

So you've successfully built the .so and now you're trying to add it to an "installed" version of Wireshark?

grahamb gravatar imagegrahamb ( 2018-12-20 17:46:27 +0000 )edit

Yes, that's exactly what I'm trying to do.

JCAMP gravatar imageJCAMP ( 2018-12-20 20:22:30 +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


Asked: 2018-12-20 16:39:42 +0000

Seen: 65 times

Last updated: Dec 20 '18