aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dmp.c
AgeCommit message (Collapse)AuthorFilesLines
2012-08-15Get it compiling.tuexen1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@44518 f5534014-38df-0310-8fa8-9805f1628bb7
2012-08-15convert GStrings to more "ephemeral friendly" use.mmann1-10/+8
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@44515 f5534014-38df-0310-8fa8-9805f1628bb7
2012-08-10Use val_to_str_const() where appropriate;wmeier1-58/+58
Also (for a few files): - create/use some extended value strings; - remove unneeded #include files; - remove unneeded variable initialization; - re-order fcns slightly so prefs_reg_handoff...() at end, etc git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@44438 f5534014-38df-0310-8fa8-9805f1628bb7
2012-07-08UATs could be put into "categories". The categories were defined onlyguy1-1/+1
implicitly by the #define name and string they were defined to; not all UATs neatly fit into any of the categories, so some of them were put into categories that weren't obviously correct for them, and one - the display filter macro UAT - wasn't put into any category at all (which caused crashes when editing them, as the GUI code that handled UAT changes from a dialog assumed the category field was non-null). The category was, in practice, used only to decide, in the aforementioned GUI code, whether the packet summary pane needed to be updated or not. It also offered no option of "don't update the packet summary pane *and* don't redissect anything", which is what would be appropriate for the display filter macro UAT. Replace the category with a set of fields indicating what the UAT affects; we currently offer "dissection", which applies to most UATs (any UAT in libwireshark presumably affects dissection at a minimum) and "the set of named fields that exist". Changing any UAT that affects dissection requires a redissection; changing any UAT that affects the set of named fields that exist requires a redissection *and* rebuilding the packet summary pane. Perhaps we also need "filtering", so that if you change a display filter macro, we re-filter, in case the display is currently filtered with a display filter that uses a macro that changed. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@43603 f5534014-38df-0310-8fa8-9805f1628bb7
2012-06-20Use separate filters for the RTT found on a SACK and the RTT found on amorriss1-9/+9
DATA chunk: having them in both places is helpful when looking at the messages but having them separate is helpful when graphing the RTTs. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@43406 f5534014-38df-0310-8fa8-9805f1628bb7
2011-12-13Prevent memory leakage of uncompress tvb and associated data buffer (step 1).wmeier1-1/+1
(tvb memory leak will actually remain until a bug in tvbuff.c is also fixed). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40171 f5534014-38df-0310-8fa8-9805f1628bb7
2011-11-20Get rid of Warnings.etxrab1-12/+12
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39957 f5534014-38df-0310-8fa8-9805f1628bb7
2011-11-08packet_info's in_error_pkt is now a bitfield like in_gre_pkt.cmaynard1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39764 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-15Convert proto_tree_add_item() 'encoding' arg for field types FT_STRING, ↵wmeier1-8/+8
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-09-26Get rid of check_col, while at it set ENC.etxrab1-37/+35
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39149 f5534014-38df-0310-8fa8-9805f1628bb7
2011-09-21Fix ex "modeline" so it works;wmeier1-1/+1
See https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5748 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39081 f5534014-38df-0310-8fa8-9805f1628bb7
2011-09-19Fix static overrun bug introduced in r37506. Fixes Coverity CID 1216.cmaynard1-32/+32
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39048 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-07-19Use ENC_NA as encoding for FT_PROTOCOL, FT_NONE and FT_BYTES.stig1-27/+27
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38122 f5534014-38df-0310-8fa8-9805f1628bb7
2011-07-19Use correct encoding for proto_tree_add_item().stig1-299/+177
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38107 f5534014-38df-0310-8fa8-9805f1628bb7
2011-06-01Yet another cast to uint.stig1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37508 f5534014-38df-0310-8fa8-9805f1628bb7
2011-06-01Corrected usage of uint/pointer conversion.stig1-4/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37507 f5534014-38df-0310-8fa8-9805f1628bb7
2011-06-01Added support for DMP version 2 and some national variants.stig1-238/+1076
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37506 f5534014-38df-0310-8fa8-9805f1628bb7
2011-03-26Added a sanity check to remove a coverity warning.stig1-1/+1
Coverity 537. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36353 f5534014-38df-0310-8fa8-9805f1628bb7
2011-02-20Renamed x411 to p1, x420 to p22 and s4406 to p772 to be consistentstig1-27/+27
on the naming policy for X.400 protocols. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36013 f5534014-38df-0310-8fa8-9805f1628bb7
2011-01-22Use nstime_set_zero() to initialize nstime_t's.morriss1-1/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35622 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-09-24(Refining the regexp...) Replace blurbs that match the name (case ↵morriss1-2/+2
insensitive) with NULL. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34230 f5534014-38df-0310-8fa8-9805f1628bb7
2010-09-23Replace blurbs that match the name (case insensitive) with NULL.morriss1-36/+36
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34227 f5534014-38df-0310-8fa8-9805f1628bb7
2010-07-02Code cleanup:stig1-1007/+986
- Use ep_strdup_printf instead of ep_alloc + g_snprintf - Untabify git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33414 f5534014-38df-0310-8fa8-9805f1628bb7
2010-05-21Have abs_time_to_str() and abs_time_to_str_secs() take an additionalguy1-5/+5
argument indicating whether to include the time zone in the string. If we're constructing a display filter, don't include the time zone, otherwise do. Fixes bug 4756. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32913 f5534014-38df-0310-8fa8-9805f1628bb7
2010-02-28Added svn:ignore targets.stig1-5/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32055 f5534014-38df-0310-8fa8-9805f1628bb7
2010-01-25Change back from tvb_child_uncompress() to tvb_uncompress() whenstig1-1/+1
parent is NULL, because this will lead to a DISSECTOR_ASSERT in tvb_set_child_real_data_tvbuff(). This bug was introduced in revision 31499. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31659 f5534014-38df-0310-8fa8-9805f1628bb7
2010-01-11Fix part of Bug 3917 "tvb_new_real_data is prone to memory leak"etxrab1-15/+15
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3917 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31499 f5534014-38df-0310-8fa8-9805f1628bb7
2009-12-10Add an argument to abs_time_to_str() and abs_time_secs_to_str()guy1-5/+5
indicating whether the time should be shown as local time or UTC. For now, always pass FALSE, meaning "show as local time". Clean up some stuff in the SNMP dissector, use abs_time_secs_to_str() for times with one-second resolution, and update a comment in various macros in the WSP dissector, while we're at it. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31227 f5534014-38df-0310-8fa8-9805f1628bb7
2009-12-08Added defines for protocol identifier.stig1-27/+42
Added hf_addr_ext_form_orig for Originator. Rewrote strings for addr_form. Indicate national protocol. Added expert info for unknown compression. Some code cleanup. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31203 f5534014-38df-0310-8fa8-9805f1628bb7
2009-10-25From Jakub Zawadzki:etxrab1-12/+9
Cleanup dissector code - use proper memory functions. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4164 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30691 f5534014-38df-0310-8fa8-9805f1628bb7
2009-10-06Use IANA assigned port number as default UDP port.stig1-4/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30352 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-30Removed unused variable.stig1-15/+8
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30223 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-07Do not use tfs true_string and false_string directly.stig1-16/+6
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28991 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-07Remove some check_col() calls.stig1-9/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28974 f5534014-38df-0310-8fa8-9805f1628bb7
2009-06-18From Kovarththanan Rajaratnam via bug 3548:stig1-133/+131
(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-03-15Adjusted my name to use only ASCII characters.stig1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27733 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-05Use some default true_false_string's.stig1-57/+37
Fixed a typo. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27618 f5534014-38df-0310-8fa8-9805f1628bb7
2008-09-23Minor changes related to proto_reg_handoff & pref rangeswmeier1-4/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26254 f5534014-38df-0310-8fa8-9805f1628bb7
2008-09-19Minor cleanup mostly related to proto_reg_handoffwmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26236 f5534014-38df-0310-8fa8-9805f1628bb7
2008-09-11Minor cleanup related to proto_reg_handoff ....wmeier1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26176 f5534014-38df-0310-8fa8-9805f1628bb7
2008-09-02Fix a few Emacs "file variables" to have "safe" values.wmeier1-1/+1
That is: indent-tabs-mode: tabs --> indent-tabs-mode: t Also: fix a typo: set-tabs-mode --> indent-tabs-mode git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26113 f5534014-38df-0310-8fa8-9805f1628bb7
2008-06-27Fix some warnings reported by gcc -Wshadow ... wmeier1-5/+5
Fix some spacing in packet-dcom.c git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25618 f5534014-38df-0310-8fa8-9805f1628bb7
2008-05-15Fix some of the Errors/warnings detected by checkapi.wmeier1-3/+9
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25305 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-25Register dissector by name.stig1-1/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25179 f5534014-38df-0310-8fa8-9805f1628bb7
2008-01-16Changed to checksum_good and checksum_bad to align with other dissectors.stig1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24115 f5534014-38df-0310-8fa8-9805f1628bb7
2008-01-15Fixed a small issue reporting corresponding package num for retransmittedstig1-1/+9
reports and notifications. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24107 f5534014-38df-0310-8fa8-9805f1628bb7