ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-dev: [Wireshark-dev] Coding style and example dissector

From: Michael Lum <michael.lum@xxxxxxxxxxxxxxxxx>
Date: Tue, 17 Dec 2013 17:55:30 -0800
Could someone please write a coding style section for the new dissectors and perhaps
point to the best example dissector.
 
The example would match the coding style and use, preferably, a majority of the API.
 
I would then code EXACTLY to that standard.
 
Currently, many of the dissectors I have submitted are having arbitrary white space/style
changes made.
 
I completely understand changes, for bugs, API changes, and warnings missed because of cross-platform
builds.
 
But I don't understand the need to change FROM a consistent style to some other style.
 
Michael Lum (michael.lum@xxxxxxxxxxxxxxxxx) | STAR SOLUTIONS | Principal Software Engineer
4600 Jacombs Road, Richmond BC, Canada V6V 3B1 | +1.604.303.2315