aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-cigi.c
AgeCommit message (Collapse)AuthorFilesLines
2011-10-15Convert proto_tree_add_item() 'encoding' arg for field types FT_STRING, ↵wmeier1-1/+1
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). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39426 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-04Use ENC_NA as encoding for proto_tree_add_item() calls which directly ↵wmeier1-1/+1
reference an hf item (in hf[] with types: FT_NONE FT_BYTES FT_IPV6 FT_IPXNET FT_OID Note: Encoding field set to ENC_NA only if the field was previously TRUE|FALSE|ENC_LITTLE_ENDIAN|ENC_BIG_ENDIAN git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39260 f5534014-38df-0310-8fa8-9805f1628bb7
2010-12-21From daulis0@gmail.com:jake1-3/+23
There are 2 parts to the CIGI protocol. 1) Host to IG messages and 2) IG to Host messages. Currently, Host to IG messages are parsed correctly, but IG to Host messages show Malformed Packet (or may not even detect as CIGI at all) Some of the protocol format is different between versions. The "Minor Version" is used by the dissector to separate the differences, but this field is in a different location in the IG Control Packet (Host to IG message) vs the Start of Frame Packet (IG to Host message). Attached patch to correct this. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35241 f5534014-38df-0310-8fa8-9805f1628bb7
2010-11-04Use value_string_ext fcns to access certain value_string arrays;wmeier1-4/+12
Sort certain value_string arrays to be in ascending numeric order; Do minor whitespace cleanup and reformatting of long lines. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34780 f5534014-38df-0310-8fa8-9805f1628bb7
2010-05-26From Brian Woodard:jake1-1/+1
User Defined CIGI packets with a packet size greater than 127 bytes are displayed as Malformed. Instead, treat size as unsigned integers. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32983 f5534014-38df-0310-8fa8-9805f1628bb7
2010-05-24Refer to the endianness arguments as "encoding" rather thanguy1-241/+241
"representation" - we already use "representation" to refer to the text representation of fields. Change some routines with an endianness argument to make it a representation argument instead; git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32929 f5534014-38df-0310-8fa8-9805f1628bb7
2010-05-12Instead of using private #defines for the last argument toguy1-257/+258
proto_tree_add_item(), use the new REP_BIG_ENDIAN and REP_LITTLE_ENDIAN values. Use those #defines in variables that represent the byte order, as well. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32776 f5534014-38df-0310-8fa8-9805f1628bb7
2010-04-06#include <string.h> not needed.wmeier1-1/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32411 f5534014-38df-0310-8fa8-9805f1628bb7
2010-04-03Remove unneeded #include <stdio.h>wmeier1-1/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32367 f5534014-38df-0310-8fa8-9805f1628bb7
2010-01-13From Didier Gautheron:etxrab1-5/+2
fix a memory leak by using se_strdup rather for g_strdup for column text. replace col_clear() follow by col_add_str() with the faster col_set_str() remove redundant check_col() call https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4394 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31520 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-09Don't guard col_set_str (COL_INFO/COL_PROTOCOL) with col_checkkrj1-3/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29345 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-07From Kovarththanan Rajaratnam:stig1-432/+432
More FT_XXX cleanup. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28971 f5534014-38df-0310-8fa8-9805f1628bb7
2009-06-18From Kovarththanan Rajaratnam via bug 3548:stig1-3/+3
(1) Trailing/leading spaces are removed from 'name's/'blurb's (2) Duplicate 'blurb's are replaced with NULL (3) Empty ("") 'blurb's are replaced with NULL (4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME, FT_PROTOCOL, FT_STRING and FT_STRINGZ field types (5) Only allow non-zero value for 'display' if 'bitmask' is non-zero git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28770 f5534014-38df-0310-8fa8-9805f1628bb7
2009-05-24Rewrite some non-ascii characters.stig1-8/+8
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28461 f5534014-38df-0310-8fa8-9805f1628bb7
2009-05-03From Brian M. Ames:jake1-29/+2152
CIGI Version 3.3 has been released. The attached diff brings the dissector for CIGI up to date with that standard. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28263 f5534014-38df-0310-8fa8-9805f1628bb7
2009-04-07Use some default true_false_string's.wmeier1-26/+11
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27983 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-16Remove some non-ascii characters.wmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27737 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-17Fix some typos and spelling (mostly in text strings)wmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27037 f5534014-38df-0310-8fa8-9805f1628bb7
2008-08-26#include <emem.h> not req'dwmeier1-1/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26091 f5534014-38df-0310-8fa8-9805f1628bb7
2008-06-27Fix some warnings reported by gcc -Wshadow ... wmeier1-3/+3
Fix some spacing in packet-dcom.c git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25618 f5534014-38df-0310-8fa8-9805f1628bb7
2008-05-14Fix some of the Errors/warnings detected by checkapi.etxrab1-6/+11
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25294 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-09Remove:etxrab1-4/+0
#ifdef NEED_G_ASCII_STRCASECMP_H #include "g_ascii_strcasecmp.h" #endif git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24859 f5534014-38df-0310-8fa8-9805f1628bb7
2008-03-04For the "cigi.3_2_los_ext_response" field, use the variable that wasguy1-1/+1
intended for it. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24547 f5534014-38df-0310-8fa8-9805f1628bb7
2008-03-04Spoted by ChrisMaynard:etxrab1-20/+20
Duplicated names. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24546 f5534014-38df-0310-8fa8-9805f1628bb7
2008-03-03Fix compilation under gcc.gerald1-419/+419
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24540 f5534014-38df-0310-8fa8-9805f1628bb7
2008-03-03From Jason Seeliger:etxrab1-27/+1245
Added support for CIGI 3.2 protocol to packet-cigi.c git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24536 f5534014-38df-0310-8fa8-9805f1628bb7
2008-02-08Added missing "svn:keywords Id" and "svn:eol-style native" for somestig1-1/+1
c and h files. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24290 f5534014-38df-0310-8fa8-9805f1628bb7
2007-11-27strcasecmp(), strncasecmp(), g_strcasecmp(), and g_strncasecmp() delendaguy1-4/+8
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23623 f5534014-38df-0310-8fa8-9805f1628bb7
2007-11-09Apply yet another set of the optimization patches:etxrab1-1/+1
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 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23412 f5534014-38df-0310-8fa8-9805f1628bb7
2007-10-23Apply the small performance enhancment patches for:etxrab1-1/+1
- 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 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23252 f5534014-38df-0310-8fa8-9805f1628bb7
2006-12-07As ponted out by Stig Bjørlykke change a whole bunch of dissector_handle_t ↵etxrab1-1/+1
to static. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20062 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-21change a whole bunch of ethereal into wiresharksahlberg1-3/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18196 f5534014-38df-0310-8fa8-9805f1628bb7
2005-12-08When checking whether a packet is for a protocol or not, make sure theguy1-27/+71
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16733 f5534014-38df-0310-8fa8-9805f1628bb7
2005-12-08From Kyle J. Harms:guy1-326/+383
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16730 f5534014-38df-0310-8fa8-9805f1628bb7
2005-12-07Fix some more scaled-fixed-point values, and have a 2-byte spare fieldguy1-6/+6
followed by a 2-byte event count. Fixes bug 609. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16720 f5534014-38df-0310-8fa8-9805f1628bb7
2005-12-07Squelch a narrowing-conversion warning.guy1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16718 f5534014-38df-0310-8fa8-9805f1628bb7
2005-12-07Don't export stuff if no other dissector uses it. "Static unlessguy1-152/+152
otherwise required." git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16715 f5534014-38df-0310-8fa8-9805f1628bb7
2005-12-07Fix indentation.guy1-36/+53
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16714 f5534014-38df-0310-8fa8-9805f1628bb7
2005-12-07Unicode considered unnecessary and non-portable. Avoid using non-ASCIIguy1-597/+591
characters in field names. Fix indentation, and fix a typo. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16713 f5534014-38df-0310-8fa8-9805f1628bb7
2005-12-06Note what we have to be careful of before we start using Unicode in theguy1-1/+8
packet list or packet details. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16696 f5534014-38df-0310-8fa8-9805f1628bb7
2005-12-06from Kyle Harmssahlberg1-341/+285
CIGI updates git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16694 f5534014-38df-0310-8fa8-9805f1628bb7
2005-12-05From Kyle J Harmssahlberg1-0/+8582
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 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16681 f5534014-38df-0310-8fa8-9805f1628bb7