Commit Graph

15 Commits

Author SHA1 Message Date
Bill Meier aa30dcd129 Minor proto_reg_handoff cleanup: use find_dissector when appropriate.
svn path=/trunk/; revision=26308
2008-09-30 14:49:44 +00:00
Stig Bjørlykke 623602ba8b Return 0 if we don't dissect any bytes.
Set desegment_len = DESEGMENT_ONE_MORE_SEGMENT.

svn path=/trunk/; revision=25443
2008-06-11 20:10:19 +00:00
Guy Harris 35fc0e7187 Make the "protocol" field big enough to hold the 3-character
null-terminated string that the format item used when scanning says it
is - i.e., 4 "char"s, including the null terminator.

(Thanks and a tip of the hat to "gcc (GCC) 3.3.5 (propolice)" on OpenBSD
4.2 for finding this.)

svn path=/trunk/; revision=23761
2007-12-05 09:31:05 +00:00
Anders Broman 1950ffc214 Apply the small performance enhancment patches for:
- if offset is 0, tvb_length is the same as tvb_length_remaining, just faster.
Replace 
- col_append_fstr() with faster  col_append_str() 
- col_add_str() with col_set_str()
when it's safe

svn path=/trunk/; revision=23252
2007-10-23 05:50:00 +00:00
Martin Mathieson 5e4e2632b4 Fix some fussy warnings seen on the Ubuntu buildbot logs
svn path=/trunk/; revision=18811
2006-08-01 17:20:13 +00:00
Ronnie Sahlberg feab79e328 change a whole bunch of ethereal into wireshark
svn path=/trunk/; revision=18196
2006-05-21 04:49:01 +00:00
Anders Broman 30ade25ed3 From Martin Mathieson:
Removes the use of the deprecated proto_tree_add_item_hidden() function

I was adding the 'msmms.command.unknown' field in lots of places (a 
habit of mine in my own dissectors), but this probably isn't useful.

svn path=/trunk/; revision=17782
2006-04-02 19:38:36 +00:00
Ronnie Sahlberg efa1f43005 convert some tvb_fake_unicode() to tvb_get_ephemeral_faked_unicode()
svn path=/trunk/; revision=15272
2005-08-10 14:17:27 +00:00
Ronnie Sahlberg ec3ab9ec3e rename ep_tvb_get_string() to tvb_get_ephemeral_string() asnd update the documentation in README.developer
svn path=/trunk/; revision=15270
2005-08-10 13:41:13 +00:00
Guy Harris ca6ddf3e8d Don't assign "" to a string that's only used after it's assigned to.
"tvb_fake_unicode()" never returns a null pointer, so there's no need to
check for it; there's also no need to check that it's not an empty
string before freeing it, as it's always assigned a g_malloc()ed string.

It also takes as an argument the number of Unicode characters in the
string, not the number of bytes in the string.

Use "format_text()" when adding a string to the Info column, in case
it has non-printable characters.

Don't use "proto_tree_add_string_format()" if you don't have to.

svn path=/trunk/; revision=15239
2005-08-06 09:23:28 +00:00
Jörg Mayer bfd9609da2 Albert Chin:
uses of some C99'isms which prevent compilation on
        IRIX 6.5 with the SGI C compiler.


svn path=/trunk/; revision=15210
2005-08-04 21:31:40 +00:00
Anders Broman 1b88171c35 From Martin Mathieson:
This update:
- adds more command parameter details
- doesn't clutter the tree with unknown fields

svn path=/trunk/; revision=15159
2005-07-31 20:36:59 +00:00
Jörg Mayer eab0aeb4bb More char -> const char fixes
Declare some functions static

svn path=/trunk/; revision=15158
2005-07-30 16:34:38 +00:00
Ronnie Sahlberg df2d1d3f22 ememify some more calls to tvb_get_string()
this fixes an obvious memleak in ms-mms


svn path=/trunk/; revision=15132
2005-07-28 09:56:19 +00:00
Anders Broman 896131ebf1 From Martin Mathieson:
Collapsed the control and data protocols into dissector to cope with commands and data over the same TCP connection.  I've also prettified things a bit and now decoded a few more command parameters.

svn path=/trunk/; revision=15001
2005-07-22 23:11:11 +00:00