Wireshark-commits: [Wireshark-commits] rev 48206: /trunk/epan/dissectors/ /trunk/epan/dissectors/:
Date: Sat, 09 Mar 2013 00:21:57 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=48206

User: mmann
Date: 2013/03/08 04:21 PM

Log:
 RTPS Cleanup, Part 2
 
 1. Convert more proto_tree_add_text to proto_tree_add_<something else>/expert_info.  checkAPIs.pl is happy (for packet-rtps.c), but the raw number is a bit deceiving because of macros and wrappers. 
 2. Fixed the offending "uses snprintf + strlen to assemble strings" in packet-rtps.c.  The exact same code is used in packet-rtps2.c, so just proper refactoring will fix it.  There is still too much unnecessary use of g_snprintf/g_strlcpy/strlen, but that's for a later date.
 3. Removed most of the "useless" wrapper functions.  Again, the number of proto_tree_add_text is deceiving, so the number of hfs that really need to be created is much larger.  
 4. Whitespace cleanup.   Removed a lot of whitespace so I could see more code on the screen, to help determine duplication between packet-rtps.c and packet-rtps2.c  Comments/descriptions of fields remain untouched.
 
 The more I trim, the more I think this should all be in a single dissector file, which will be the goal of the next update.  Trying to patch this in somewhat manageable chunks.
 
 Also need to submit sample traces generated for (fuzz)testing.

Directory: /trunk/epan/dissectors/
  Changes    Path              Action
  +729 -1660 packet-rtps.c     Modified
  +61 -16    packet-rtps.h     Modified
  +368 -2010 packet-rtps2.c    Modified
  +3 -122    packet-rtps2.h    Modified