aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dcp-etsi.c
AgeCommit message (Collapse)AuthorFilesLines
2011-10-21For proto_tree_add_item(..., proto_xxx, ...)use ENC_NA as the encoding arg.wmeier1-4/+4
Also: remove trailing whitespace for a number of files. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39503 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-16Do some conversions of proto_tree_add_item() 'encoding' arg.wmeier1-1/+1
(previously missed). 57 FT_BOOLEAN: FALSE-->ENC_BIG_ENDIAN 31 FT_BOOLEAN: TRUE-->ENC_LITTLE_ENDIAN 10 FT_BYTES: ENC_BIG_ENDIAN-->ENC_NA 1 FT_BYTES: ENC_LITTLE_ENDIAN-->ENC_NA 21 FT_BYTES: FALSE-->ENC_NA 2 FT_BYTES: TRUE-->ENC_NA 2 FT_IPXNET: ENC_BIG_ENDIAN-->ENC_NA 6 FT_IPv6: ENC_BIG_ENDIAN-->ENC_NA 1 FT_IPv6: FALSE-->ENC_NA 6 FT_NONE: ENC_BIG_ENDIAN-->ENC_NA 19 FT_NONE: FALSE-->ENC_NA 3 FT_NONE: TRUE-->ENC_NA 1 FT_STRING: ENC_BIG_ENDIAN-->ENC_ASCII|ENC_NA 1 FT_STRING: ENC_LITTLE_ENDIAN-->ENC_ASCII|ENC_NA 5 FT_STRING: FALSE-->ENC_ASCII|ENC_NA 1 FT_STRING: TRUE-->ENC_ASCII|ENC_NA 4 FT_STRINGZ: ENC_NA-->ENC_ASCII|ENC_NA 8 FT_STRINGZ: FALSE-->ENC_ASCII|ENC_NA 1 FT_INT32: FALSE-->ENC_BIG_ENDIAN 1 FT_INT32: TRUE-->ENC_LITTLE_ENDIAN 11 FT_UINT8: 0-->ENC_BIG_ENDIAN 111 FT_UINT8: FALSE-->ENC_BIG_ENDIAN 17 FT_UINT8: TRUE-->ENC_LITTLE_ENDIAN 1 FT_UINT16: 0-->ENC_BIG_ENDIAN 68 FT_UINT16: FALSE-->ENC_BIG_ENDIAN 18 FT_UINT16: TRUE-->ENC_LITTLE_ENDIAN 4 FT_UINT24: FALSE-->ENC_BIG_ENDIAN 70 FT_UINT32: FALSE-->ENC_BIG_ENDIAN 1 FT_UINT32: TRUE-->ENC_LITTLE_ENDIAN 4 FT_UINT64: FALSE-->ENC_BIG_ENDIAN 1 FT_UINT64: TRUE-->ENC_LITTLE_ENDIAN 1 FT_UINT_STRING: FALSE-->ENC_ASCII|ENC_BIG_ENDIAN git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39442 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-15Convert proto_tree_add_item() 'encoding' arg for field types FT_STRING, ↵wmeier1-2/+2
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
2011-09-26Get rid of check_col, while at it set ENC.etxrab1-38/+36
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39149 f5534014-38df-0310-8fa8-9805f1628bb7
2011-08-31Second try to move crc routines to libwsutil.stig1-1/+1
This time keep the tvb routines in epan. Now we can use common crc routines outside epan. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38810 f5534014-38df-0310-8fa8-9805f1628bb7
2011-08-30Revert r38800, as the crc routines contains some tvb functions.stig1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38803 f5534014-38df-0310-8fa8-9805f1628bb7
2011-08-30Move all crc routines to libwsutil.stig1-1/+1
This way we can use the crc routines in wiretap. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38800 f5534014-38df-0310-8fa8-9805f1628bb7
2011-06-22Fix some gcc 4.6 "set but not used [-Wunused-but-set-variable]" warnings;wmeier1-7/+2
Also: misc minor cleanup: unneeded #include; whitespace, tvb_length-->tvb_reported_length git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37757 f5534014-38df-0310-8fa8-9805f1628bb7
2011-05-13Delete 2 assignments to 'i' as neither were used. Fixes Coverity CID 875.cmaynard1-5/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37132 f5534014-38df-0310-8fa8-9805f1628bb7
2011-01-30Introduce "Fragment count" filter element for all protocols doing reassembly.stig1-0/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35705 f5534014-38df-0310-8fa8-9805f1628bb7
2011-01-20Roll some calls to tvb_get_ptr() into proto_tree_add_bytes_format() (insteadmorriss1-5/+6
of going through a temporary variable). This just makes it more obvious which add_bytes_format() calls are or are not being given pointers into the TVB. Use tvb_ip_to_str() and tvb_ip6_to_str() in a couple spots. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35593 f5534014-38df-0310-8fa8-9805f1628bb7
2010-12-20Rename the routines that handle dissector tables with unsigned integerguy1-2/+2
keys to have _uint in their names, to match the routines that handle dissector tables with string keys. (Using _port can confuse people into thinking they're intended solely for use with TCP/UDP/etc. ports when, in fact, they work better for things such as Ethernet types, where the binding of particular values to particular protocols are a lot stronger.) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35224 f5534014-38df-0310-8fa8-9805f1628bb7
2010-02-06Renamed some reassembled data texts.stig1-4/+4
Removed some check_col(). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31809 f5534014-38df-0310-8fa8-9805f1628bb7
2010-02-02Introduce "Reassembled length" filter element for all protocols doingstig1-1/+7
reassembly. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31767 f5534014-38df-0310-8fa8-9805f1628bb7
2010-01-13From Didier Gautheron:etxrab1-3/+1
check_col.diff Remove redundant calls to check_col() if it guards only one columns function with one parameter after the column type. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4394 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31519 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-16Switch a bunch of dissectors over to using tvb_new_subset_remaining()krj1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29446 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-09Don't guard col_clear with col_checkkrj1-3/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29346 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-09Don't guard col_set_str (COL_INFO/COL_PROTOCOL) with col_checkkrj1-9/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29345 f5534014-38df-0310-8fa8-9805f1628bb7
2009-06-18From Kovarththanan Rajaratnam via bug 3548:stig1-10/+10
(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-13Apply some of the patches from:etxrab1-4/+2
http://wiki.wireshark.org/Development/Optimization git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28356 f5534014-38df-0310-8fa8-9805f1628bb7
2009-05-08FT_BOOLEAN fields with bitmask: Display is 'parent bitfield width' not BASE...wmeier1-61/+62
Use consistent indentation. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28307 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-19Back out r27047 and r27053.gerald1-2/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27062 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-18Update calls to proto_tree_add_bytes_format to reflect r27047.gerald1-3/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27053 f5534014-38df-0310-8fa8-9805f1628bb7
2008-09-30Fix Bug 2860 Malformed Packet DCP ETSI error with UDP packet length 9 byetxrab1-0/+31
not accepting packages shorter than 10 bytes in the heuristic(min header length). https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2860 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26311 f5534014-38df-0310-8fa8-9805f1628bb7
2008-09-26Minor cleanup related to proto_register & proto_reg_handoffwmeier1-10/+7
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26280 f5534014-38df-0310-8fa8-9805f1628bb7
2008-08-25prefs_register_protocol not req'd since no prefs; simplify reg_handoff & do ↵wmeier1-18/+12
minor cleanup git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26081 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
2007-11-15Don't try to reassemble a huge number of fragments.gerald1-0/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23463 f5534014-38df-0310-8fa8-9805f1628bb7
2007-08-17Replace a couple more calls to tvb_get_string() with ↵morriss1-4/+3
tvb_get_ephemeral_string(). 2 of the 3 replacements fix memory leaks. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22542 f5534014-38df-0310-8fa8-9805f1628bb7
2007-03-09move some variable declarations to the start of the block.sahlberg1-3/+6
many compilers do not support the nonstandard feature to declare variables in the middle of a block. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21012 f5534014-38df-0310-8fa8-9805f1628bb7
2007-03-09Fix for bug 1264 from Julian Cable:gerald1-23/+31
I've refactored the offending code branch and added some comments so hopefully the intent is a bit clearer. The loop termination conditions are now obviously independent of the content on the wire (they were meant to be before, but I admit it was obscure). I've tried using the ephemeral memory routines. Add a check for a maximum fragment count, and bail out of reassembly instead of triggering an ep_alloc exception. Add Julian to AUTHORS. Update the release notes. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21007 f5534014-38df-0310-8fa8-9805f1628bb7
2007-01-26A few more ethereal --> wiresharkwmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20559 f5534014-38df-0310-8fa8-9805f1628bb7
2007-01-25Remove dead code. Fixes Coverity CID 228. Squelch various compiler warnings.gerald1-37/+33
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20553 f5534014-38df-0310-8fa8-9805f1628bb7
2006-11-25From Julian Cable:etxrab1-0/+878
New dissector for ETSI DCP (ETSI TS 102 821). Code rearranged to look more like other Wireshark dissectors and some warnings/errors on Windows fixed. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19981 f5534014-38df-0310-8fa8-9805f1628bb7