Commit Graph

26 Commits

Author SHA1 Message Date
Bill Meier 2b63715879 Remove some non-ascii characters.
svn path=/trunk/; revision=27737
2009-03-16 13:58:40 +00:00
Bill Meier a8f30cbca1 Fix some typos and spelling (mostly in text strings)
svn path=/trunk/; revision=27037
2008-12-17 17:23:37 +00:00
Bill Meier b52d95d591 #include <emem.h> not req'd
svn path=/trunk/; revision=26091
2008-08-26 01:28:50 +00:00
Bill Meier f8e3822738 Fix some warnings reported by gcc -Wshadow ...
Fix some spacing in packet-dcom.c

svn path=/trunk/; revision=25618
2008-06-27 16:15:30 +00:00
Anders Broman 2e0c1810e7 Fix some of the Errors/warnings detected by checkapi.
svn path=/trunk/; revision=25294
2008-05-14 07:35:52 +00:00
Anders Broman 63c5c71cf8 Remove:
#ifdef NEED_G_ASCII_STRCASECMP_H
#include "g_ascii_strcasecmp.h"
#endif

svn path=/trunk/; revision=24859
2008-04-09 05:36:08 +00:00
Guy Harris 1924881e9e For the "cigi.3_2_los_ext_response" field, use the variable that was
intended for it.

svn path=/trunk/; revision=24547
2008-03-04 08:58:08 +00:00
Anders Broman 5459fefbad Spoted by ChrisMaynard:
Duplicated names.

svn path=/trunk/; revision=24546
2008-03-04 05:55:11 +00:00
Gerald Combs 356f8271c4 Fix compilation under gcc.
svn path=/trunk/; revision=24540
2008-03-03 22:01:29 +00:00
Anders Broman 76c146ee97 From Jason Seeliger:
Added support for CIGI 3.2 protocol to packet-cigi.c

svn path=/trunk/; revision=24536
2008-03-03 20:08:19 +00:00
Stig Bjørlykke 42fe2398b9 Added missing "svn:keywords Id" and "svn:eol-style native" for some
c and h files.

svn path=/trunk/; revision=24290
2008-02-08 09:45:36 +00:00
Guy Harris 9c89cdaaa3 strcasecmp(), strncasecmp(), g_strcasecmp(), and g_strncasecmp() delenda
est.  Use g_ascii_strcasecmp() and g_ascii_strncasecmp(), and supply our
own versions if they're missing from GLib (as is the case with GLib
1.x).

In the code to build the list of named fields for Diameter, don't use
g_strdown(); do our own g_ascii_-style upper-case to lower-case mapping
in the hash function and use g_ascii_strcasecmp() in the compare
function.

We do this because there is no guarantee that toupper(), tolower(), and
functions that use them will, for example, map between "I" and "i" in
all locales; in Turkish locales, for example, there are, in both
upper case and lower case, versions of "i" with and without a dot, and
the upper-case version of "i" is "I"-with-a-dot and the lower-case
version of "I" is "i"-without-a-dot.  This causes strings that should
match not to match.

This finishes fixing bug 2010 - an earlier checkin prevented the crash
(as there are other ways to produce the same crash, e.g. a bogus
dictionary.xml file), but didn't fix the case-insensitive string matching.

svn path=/trunk/; revision=23623
2007-11-27 18:52:51 +00:00
Anders Broman 6226035893 Apply yet another set of the optimization patches:
When offset parameter is 0 replace tvb_bytes_exist() with the faster tvb_length().

On the other hand 
	if (tvb_bytes_exist(tvb, 0, 20)
is more readable than
	if (tvb_length(tvb) >= 20

so only do it in heuristic function

svn path=/trunk/; revision=23412
2007-11-09 06:01:18 +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
Anders Broman d61e373bb4 As ponted out by Stig Bjørlykke change a whole bunch of dissector_handle_t to static.
svn path=/trunk/; revision=20062
2006-12-07 20:34:08 +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
Guy Harris d321960330 When checking whether a packet is for a protocol or not, make sure the
bytes you'll be checking are available in the tvbuff first.

Don't require *all* of the packet data to be available, however.

Heuristic dissectors should return TRUE or FALSE.  Non-heuristic
"new-style" dissectors should return the amount of data dissected or 0. 

svn path=/trunk/; revision=16733
2005-12-08 10:56:51 +00:00
Guy Harris a9892169e3 From Kyle J. Harms:
Fix a few problems.

	CIGI 1 and 2 are only big-endian; CIGI 3 can be little-endian or
	big-endian.

	Remove the port preferences.

svn path=/trunk/; revision=16730
2005-12-08 08:55:15 +00:00
Guy Harris 93106a8e2e Fix some more scaled-fixed-point values, and have a 2-byte spare field
followed by a 2-byte event count.  Fixes bug 609.

svn path=/trunk/; revision=16720
2005-12-07 10:44:55 +00:00
Guy Harris 6afd45377d Squelch a narrowing-conversion warning.
svn path=/trunk/; revision=16718
2005-12-07 09:48:08 +00:00
Guy Harris 3250d41ea6 Don't export stuff if no other dissector uses it. "Static unless
otherwise required."

svn path=/trunk/; revision=16715
2005-12-07 01:45:44 +00:00
Guy Harris 363298dd4c Fix indentation.
Gate X and Y Offset are 16-bit integral numbers of degrees, not 32-bit
IEEE floating-point numbers, and the numbers in collision detection
segment definitions and collision detection volume definitions are
16-bit fixed-point numbers, not 32-bit IEEE floating-point numbers;
handle them as such - this fixes bug 605.

When displaying the packet length in the Info column, display the *real*
length, not the sliced length.

svn path=/trunk/; revision=16714
2005-12-07 01:31:43 +00:00
Guy Harris e5de0c4986 Unicode considered unnecessary and non-portable. Avoid using non-ASCII
characters in field names.

Fix indentation, and fix a typo.

svn path=/trunk/; revision=16713
2005-12-07 00:43:17 +00:00
Guy Harris ac2edbb7aa Note what we have to be careful of before we start using Unicode in the
packet list or packet details.

svn path=/trunk/; revision=16696
2005-12-06 06:09:28 +00:00
Ronnie Sahlberg 844756f0ca from Kyle Harms
CIGI updates


svn path=/trunk/; revision=16694
2005-12-06 01:05:48 +00:00
Ronnie Sahlberg e6dd4f9631 From Kyle J Harms
New protocol : CIGI  (with minor updates to make it heuristic)

Hi,

This patch is for a CIGI dissector (complete versions 2 and 3).  It has
been [fuzz] tested on GNU/Linux using the Ethereal 0.10.13 codebase.
However, the patch here is against the svn repository.

More information about CIGI can be found at http://cigi.sourceforge.net/

Kyle Harms




svn path=/trunk/; revision=16681
2005-12-05 20:54:42 +00:00