aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ncp-nmas.c
AgeCommit message (Collapse)AuthorFilesLines
2011-10-06Convert 'encoding' parameter of certain proto_tree_add_item() calls in ↵wmeier1-31/+31
non-autogenerated epan/dissectors: Specifically: Replace FALSE|0 and TRUE|1 by ENC_BIG_ENDIAN|ENC_LITTLE_ENDIAN as the encoding parameter for proto_tree_add_item() calls which directly reference an item in hf[] which has a type of: FT_UINT8 FT_UINT16 FT_UINT24 FT_UINT32 FT_UINT64 FT_INT8 FT_INT16 FT_INT24 FT_INT32 FT_INT64 FT_FLOAT FT_DOUBLE git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39288 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-04Use ENC_NA as encoding for proto_tree_add_item() calls which directly ↵wmeier1-8/+8
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
2011-06-20Fix some gcc 4.6 "set but not used [-Wunused-but-set-variable]" warnings;wmeier1-2/+2
(Code commented out since it may be required in the future (at least in some cases). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37723 f5534014-38df-0310-8fa8-9805f1628bb7
2011-05-17As suggested by Chris: use val_to_str_const() instead of match_strval() plus amorriss1-29/+28
NULL-return check. Use val_to_str_const instead of val_to_str() in a couple places where the string is constant. Use val_to_str() instead of blindly passing the return value from match_strval() into a format routine (to ensure a non-NULL string pointer). A couple of these were cases where it could not actually return NULL, but I changed it for consistency. Store the return value of match_strval() rather than calling it repeatedly. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37204 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@32410 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-09Don't guard col_set_str (COL_INFO/COL_PROTOCOL) with col_checkkrj1-6/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29345 f5534014-38df-0310-8fa8-9805f1628bb7
2009-06-18From Kovarththanan Rajaratnam via bug 3548:stig1-28/+28
(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-05The expert_item pointers and expert_status values don't need to beguy1-2/+2
static; make them auto variables. Make sure that expert information is added outside "if (tree) { }", so it gets added even if we're not building the protocol tree. Clean up white space. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28281 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-20Fix various typos and spelling errors (mostly in text strings)wmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27065 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-17Fix typos and spelling (mostly in text strings) wmeier1-6/+6
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27028 f5534014-38df-0310-8fa8-9805f1628bb7
2008-10-31Fix several cases of writing to COL_PROTOCOL w/o checking firstwmeier1-2/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26645 f5534014-38df-0310-8fa8-9805f1628bb7
2008-08-25#include <prefs.h> not req'dwmeier1-1/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26089 f5534014-38df-0310-8fa8-9805f1628bb7
2006-07-11fix two of iljas bugssahlberg1-1/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18710 f5534014-38df-0310-8fa8-9805f1628bb7
2006-07-07Fix more bugs found by Ilja van Sprundel.gerald1-22/+22
packet-mount.c: Don't allocate a huge amount of memory. packet-ntp.c: Fix a possible format string bug. packet-ndps.c: packet-nmas.c: Fix an off-by-one buffer error. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18678 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-21change a whole bunch of ethereal into wiresharksahlberg1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18196 f5534014-38df-0310-8fa8-9805f1628bb7
2005-11-23From greg Morris:etxrab1-4/+2
Fixes proper decoding of extended error 2 values Also adds a number of additional error codes/values git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16573 f5534014-38df-0310-8fa8-9805f1628bb7
2005-10-19From Greg Morris:gram1-4/+17
Updates to the NMAS dissector. 1. Fixes error checking fragments 2. Adds expert data git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16268 f5534014-38df-0310-8fa8-9805f1628bb7
2005-01-14From Greg Morris: Improve malformed packet handling.gerald1-3/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13034 f5534014-38df-0310-8fa8-9805f1628bb7
2004-11-10From Greg Morris:guy1-171/+220
support 6 additional login message verbs; correct a problem with displaying proper return code values in the reply packets. Clean up white space. Use "tvb_reported_length_remaining()" instead of "tvb_length_remaining()", and don't use either one to avoid throwing an exception on a short or malformed packet. Use "val_to_str()" rather than "match_strval()", so we don't crash if a value happens not to be valid. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12503 f5534014-38df-0310-8fa8-9805f1628bb7
2004-09-27Move prefs.c and prefs.h into the epan subdirectory.guy1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12115 f5534014-38df-0310-8fa8-9805f1628bb7
2004-07-18Move dissectors to epan/dissectors directory.gram1-0/+734
Also move ncp222.py, x11-fields, process-x11-fields.pl, make-reg-dotc, and make-reg-dotc.py. Adjust #include lines in files that include packet-*.h files. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11410 f5534014-38df-0310-8fa8-9805f1628bb7