Commit Graph

8 Commits

Author SHA1 Message Date
Guy Harris 691d83c5a9 Use "tvb_format_text()" to format 8-bit strings, so we don't have
problems with non-printable characters.

Don't un-constify "tvb_get_ptr()".

svn path=/trunk/; revision=9281
2003-12-14 00:04:22 +00:00
Guy Harris 4b21d5e882 "wctomb()" doesn't necessarily accept Unicode as input, and may produce
more than one character as output.  Use "tvb_fake_unicode()" to handle
Unicode strings, instead.

Don't hand strings to "proto_tree_add_text()" - it expects a
printf-style formatting operator, which means it'd treat "%" specially.
Use "%s", or "%.*s", instead; use "%.*s" when we don't know that the
string is null-terminated.

svn path=/trunk/; revision=9280
2003-12-13 23:55:29 +00:00
Ulf Lamping 10e3320115 prevent MSVC warning:
"warning C4761: Gr��enkonflikt im Argument. Konvertierung vorgenommen"
-> size conflict in argument, conversion done

svn path=/trunk/; revision=9244
2003-12-11 21:23:37 +00:00
Guy Harris a93463727e Get rid of the private "my_decode_bitfield_value()" a number of
dissectors had.  Instead, rename it "other_decode_bitfield_value()", put
it in "epan/to_str.c", and make "decode_bitfield_value()" use it.

svn path=/trunk/; revision=9213
2003-12-08 23:40:13 +00:00
Guy Harris 7bd2e232a9 Export "protocol_t" as an opaque type.
Make "proto_is_protocol_enabled()" and "proto_get_protocol_short_name()"
take a "protocol_t *" as an argument, so they don't have to look up the
"protocol_t" - this will probably speed them up considerably, and
they're called on almost every dissector handoff.

Get rid of a number of "proto_is_protocol_enabled()" calls that aren't
necessary (dissectors called through handles, including those called
through dissector tables, or called as heuristic dissectors, aren't even
called if their protocol isn't enabled).

Change some direct dissector calls to go through handles.

svn path=/trunk/; revision=8979
2003-11-16 23:17:27 +00:00
Guy Harris 5560949b15 No zero-length arrays, please.
svn path=/trunk/; revision=8832
2003-10-30 11:54:21 +00:00
Guy Harris 2494f0bf32 From Michael Lum: squelch a couple of compiler warnings.
svn path=/trunk/; revision=8827
2003-10-30 07:14:27 +00:00
Guy Harris 8e67a430e8 From Michael Lum:
GSM BSSMAP (GSM 08.08) support
	GSM DTAP (3GPP TS 24.008) support
	GSM SMS (3GPP TS 24.011) support
	GSM SS (3GPP TS 24.080) support
	GSM SMS TPDU (3GPP TS 23.040) support

svn path=/trunk/; revision=8826
2003-10-30 07:00:18 +00:00