Commit graph

14 commits

Author SHA1 Message Date
Bill Meier
126aa85393 Convert proto_tree_add_item() 'encoding' arg for field types FT_STRING, FT_STRINGZ, FT_UINT_STRING as follows:
1. If there's no character encoding (ENC_ASCII, ...) specified
    then use ENC_ASCII.
 2. For all but FT_UINT_STRING, always use ENC_NA
    (replacing any existing True/1/FALSE/0
    /ENC_BIG_ENDIAN/ENC_LITTLE_ENDIAN).



svn path=/trunk/; revision=39426
2011-10-15 18:46:26 +00:00
Bill Meier
e6bd9d1a8c Whitespace cleanup:
Use consistent indentation;
 Convert "4 space tabs" to spaces;
 Remove trailing whitespace.

svn path=/trunk/; revision=39082
2011-09-21 18:55:03 +00:00
Bill Meier
781129806f Fix ex "modeline" so it works;
See https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5748

svn path=/trunk/; revision=39081
2011-09-21 17:49:11 +00:00
Bill Meier
cccda1f981 Remove unneeded #includes and do other minor cleanup.
svn path=/trunk/; revision=38259
2011-07-29 16:07:00 +00:00
Guy Harris
859aadfd5f Add a URL for the specifications. (No, the Wireshark source code is not
a specification.)

Put V1 support back, in case there are captures out there with V1
packets and somebody wants to read them.

We don't need two identical tests against the minimum length.

For an unknown version, just put in a text item for the data, don't
append a note to the length field (which is the wrong field to append to
in any case).

Make routines not used outside this file static.

svn path=/trunk/; revision=37912
2011-07-06 05:31:42 +00:00
Gerald Combs
05d9997311 tvb_format_text → tvb_format_stringzpad.
svn path=/trunk/; revision=37754
2011-06-22 16:02:26 +00:00
Gerald Combs
93f81a78cd From Jon Ellch via bug 5175:
Please see the attached patch which updates the ppi-geolocation support
to v2.0 of the specification. This iteration adds a new tag (sensor) and
removes support for velocity/acceleration from the vector tag. Most of
the changes center on the Vector tag. Everything that takes place
elsewhere is cosmetic.

I ran this iteration through fuzz-test and check-APIs just like last
time.


From me:

Replace tvb_get_ephemeral_string with tvb_format_text. Move dissector
registration to the bottom of each file.

svn path=/trunk/; revision=37733
2011-06-20 20:51:42 +00:00
Jeff Morriss
eaea469533 Actually use proto_tree_add_item().
svn path=/trunk/; revision=35397
2011-01-06 02:58:26 +00:00
Jeff Morriss
6f1c903e18 There's no need to pass the result of tvb_get_ptr() as the 'value' in proto_tree_add_string: just use proto_tree_add_item().
svn path=/trunk/; revision=35396
2011-01-06 02:56:10 +00:00
Bill Meier
03b57df5a0 Fix various typos and spelling errors.
svn path=/trunk/; revision=35126
2010-12-06 01:34:58 +00:00
Guy Harris
f54beaed87 Clean up blurbs a bit. Not much we can do about "Description" - what is
it a description *of*?

svn path=/trunk/; revision=34978
2010-11-19 19:02:08 +00:00
Bill Meier
5cb41c00b1 Remove a check_col();
Fix a typo;
Minor whitespace cleanup.

svn path=/trunk/; revision=34971
2010-11-19 15:26:27 +00:00
Bill Meier
ceb99a4bf0 Fix compilation errors: Use FT_DOUBLE and proto_tree_add_double for gdoubles.
svn path=/trunk/; revision=34963
2010-11-18 23:02:20 +00:00
Stephen Fisher
dbf10b1dc8 From Jon Ellch via bug #5175: Add PPI-GPS protocol dissector patch
Minor changes by me as detailed in the bug's comment #8.


svn path=/trunk/; revision=34956
2010-11-18 20:54:14 +00:00