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

Wireshark-dev: [Wireshark-dev] multiple dissectors

From: Brian Oleksa <oleksab@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 18 Feb 2010 15:12:50 -0500

Wiresharkers

Right now I have basically 2 dissectors in one C file. For example:

I have    void dissect_test
            void dissect_test2

All in the same file called packet-testing.c

Which means I have 2 of the following methods as well:

void proto_reg_handoff_test(void)
void proto_reg_handoff_test2(void)

void proto_register_test(void)
void proto_register_test2(void)

My question is... Is this good practice..?? Or should these be separated..??

Thanks,
Brian