aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-p_mul.c
AgeCommit message (Collapse)AuthorFilesLines
2013-05-12Add the posibillity to use a key for per-packet-data.Anders Broman1-2/+2
svn path=/trunk/; revision=49259
2013-03-24Don't cast away constness.Guy Harris1-3/+3
svn path=/trunk/; revision=48536
2013-03-22Don't wire into the reassembly code the notion that reassemblies shouldGuy Harris1-10/+8
be done on flows from one address to another; reassembly for protocols running atop TCP should be done on flows from one TCP endpoint to another. We do this by: adding "reassembly table" as a data structure; associating hash tables for both in-progress reassemblies and completed reassemblies with that data structure (currently, not all reassemblies use the latter; they might keep completed reassemblies in the first table); having functions to create and destroy keys in that table; offering standard routines for doing address-based and address-and-port-based flow processing, so that dissectors not needing their own specialized flow processing can just use them. This fixes some mis-reassemblies of NIS YPSERV YPALL responses (where the second YPALL response is processed as if it were a continuation of a previous response between different endpoints, even though said response is already reassembled), and also allows the DCE RPC-specific stuff to be moved out of epan/reassembly.c into the DCE RPC dissector. svn path=/trunk/; revision=48491
2013-03-18From beroset:Anders Broman1-13/+13
remove C++ incompatibilities https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 svn path=/trunk/; revision=48384
2012-11-29Make all enum_val_t's const.Jeff Morriss1-1/+1
svn path=/trunk/; revision=46292
2012-09-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss1-2/+0
svn path=/trunk/; revision=45017
2012-09-07From Robert Bullen via ↵Jeff Morriss1-0/+2
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7683 : The reassembled fragments tree in the Packet Details view is awesome, but it lacks one thing: a field that exposes the reassembled data. tcp.data already exists for exposing a single TCP segment's payload as a byte array. It would be handy to have something similar for a single application layer PDU when TCP segment reassembly is involved. I propose tcp.reassembled.data, named and placed after the already existing field tcp.reassembled.length. My primary use case for this feature is outputting tcp.reassembled.data with tshark for further processing with a script. The attached patch implements this very feature. Because the reassembled fragment tree code is general purpose, i.e. not specific to just TCP, any dissector that relies upon it can add a similar field very cheaply. In that vein I've also implemented ip.reassembled.data and ipv6.reassembled.data, which expose reassembled fragment data as a single byte stream for IPv4 and IPv6, respectively. All other protocols that use the reassembly code have been left alone, other than inserting NULL into their initializer lists for the newly introduced struct field reassemble.h:fragment_items.hf_reassembled_data. svn path=/trunk/; revision=44802
2012-08-10Use val_to_str_const() where appropriate;Bill Meier1-1/+1
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 svn path=/trunk/; revision=44438
2012-07-12Don't call subdissectors / expert...() / col...() under 'if (tree)'Bill Meier1-51/+51
Also: Remove some uneeded initializers; Do some whitespace cleanup and re-formatting. svn path=/trunk/; revision=43681
2011-11-08packet_info's in_error_pkt is now a bitfield like in_gre_pkt.Chris Maynard1-2/+2
svn path=/trunk/; revision=39764
2011-10-21For proto_tree_add_item(..., proto_xxx, ...)use ENC_NA as the encoding arg.Bill Meier1-1/+1
Also: remove trailing whitespace for a number of files. svn path=/trunk/; revision=39503
2011-10-04Use ENC_NA as encoding for proto_tree_add_item() calls which directly ↵Bill Meier1-5/+5
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 svn path=/trunk/; revision=39260
2011-09-21Fix ex "modeline" so it works;Bill Meier1-1/+1
See https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5748 svn path=/trunk/; revision=39081
2011-07-19Use correct encoding for proto_tree_add_item().Stig Bjørlykke1-37/+35
svn path=/trunk/; revision=38107
2011-02-10Modify proto_tree_add_bytes_format() and proto_tree_add_bytes_format_value()Jeff Morriss1-2/+1
so that if the start_ptr is NULL the bytes are extracted from the given TVB using the given offset and length. Replace a bunch of: proto_tree_add_bytes_format*(tree, hf, tvb, offset, length, tvb_get_ptr(tvb, offset, length), [...]) with: proto_tree_add_bytes_format*(tree, hf, tvb, offset, length, NULL, [...]) svn path=/trunk/; revision=35896
2011-01-30Introduce "Fragment count" filter element for all protocols doing reassembly.Stig Bjørlykke1-0/+5
svn path=/trunk/; revision=35705
2011-01-22Ensure we keep the pkg_data pointer for the init routine to cleanup correctly,Stig Bjørlykke1-8/+13
because the ep memory is cleared before the init routine is called. Fixed the variable name for the no_yes true_false_string. Update reference to protocol description. svn path=/trunk/; revision=35626
2011-01-22Use nstime_set_zero() to initialize nstime_t's.Jeff Morriss1-50/+53
svn path=/trunk/; revision=35622
2010-12-20Rename the routines that handle dissector tables with unsigned integerGuy Harris1-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.) svn path=/trunk/; revision=35224
2010-10-05Avoid printing double p_mul.pdu_type in custom columns.Stig Bjørlykke1-1/+5
svn path=/trunk/; revision=34387
2010-02-06Renamed some reassembled data texts.Stig Bjørlykke1-2/+2
Removed some check_col(). svn path=/trunk/; revision=31809
2010-02-02Added protocol name to "Reassembled length" text.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=31774
2010-02-02Introduce "Reassembled length" filter element for all protocols doingStig Bjørlykke1-0/+6
reassembly. svn path=/trunk/; revision=31767
2009-12-19For fields of type FT_ABSOLUTE_TIME, have the "display" value be one ofGuy Harris1-1/+1
ABSOLUTE_TIME_LOCAL or ABSOLUTE_TIME_UTC, indicating whether to display the date/time in local time or UTC. (int)ABSOLUTE_TIME_LOCAL == (int)BASE_NONE, so there's no source or binary compatiblity issue, although we might want to eliminate BASE_NONE at some point and have the BASE_ values used with integral types start at 0, so that you can't specify BASE_NONE for an integral field. svn path=/trunk/; revision=31319
2009-11-27Add PDU Delay for first data packet.Stig Bjørlykke1-0/+7
svn path=/trunk/; revision=31095
2009-08-11Don't coerce a (void *) to a (guint32 *). Bill Meier1-2/+2
The (void *) pointer in this case may point to "unaligned" data. svn path=/trunk/; revision=29378
2009-08-05Convert a GString to an ep_strbuf_t (and squelch a static analysisGerald Combs1-8/+6
warning in the process). Remove an unused variable. svn path=/trunk/; revision=29308
2009-07-23Set editor modelines to be consistent between emacs and vi/ex;Bill Meier1-2/+2
Indentation and whitespace cleanup; svn path=/trunk/; revision=29180
2009-07-07Remove some check_col() calls.Stig Bjørlykke1-14/+7
svn path=/trunk/; revision=28974
2009-06-18From Kovarththanan Rajaratnam via bug 3548:Stig Bjørlykke1-45/+43
(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 svn path=/trunk/; revision=28770
2009-03-15Adjusted my name to use only ASCII characters.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=27733
2009-02-25Removed mark for unused pinfo, its in use.Stig Bjørlykke1-4/+2
svn path=/trunk/; revision=27537
2008-12-19Back out r27047 and r27053.Gerald Combs1-0/+1
svn path=/trunk/; revision=27062
2008-12-18Update calls to proto_tree_add_bytes_format to reflect r27047.Gerald Combs1-1/+0
svn path=/trunk/; revision=27053
2008-10-13Added total time analysis from Address to Ack-Ack PDU.Stig Bjørlykke1-23/+58
Renamed previous total time to transmission time. svn path=/trunk/; revision=26428
2008-10-03From Mattias Nissler (bug 2936):Stig Bjørlykke1-7/+7
Fix some gpointer casts. svn path=/trunk/; revision=26347
2008-10-03Several improvements:Stig Bjørlykke1-185/+371
- Split SEQ/ACK analysis into SEQ analysis (pr msg) and ACK analysis (pr dest/ackinfo entry) to correctly handle multicast messages. - Improved dump of timestamp (in units of 100ms). - Show Address PDU with 0 dest entries as Ack-Ack PDU. - Print correct number of missing sequence numbers in Ack. - Indicate end of list entry in Ack. - Message ID is unsigned. svn path=/trunk/; revision=26345
2008-10-02Added option to decode as BER encoded ASN.1.Stig Bjørlykke1-2/+15
Dump as data if no decoding. svn path=/trunk/; revision=26339
2008-09-23Minor changes related to proto_reg_handoff & pref rangesBill Meier1-4/+3
svn path=/trunk/; revision=26254
2008-09-19Minor cleanup mostly related to proto_reg_handoffBill Meier1-2/+2
svn path=/trunk/; revision=26236
2008-08-22Only use one IP address for seq/ack analysis.Stig Bjørlykke1-22/+20
Use correct length for dest entry and ack info entry. Print correct id list for acks. svn path=/trunk/; revision=26059
2008-08-15Added handling of missing sequence number range in ack.Stig Bjørlykke1-82/+145
Add all message ids in ack to the info column. Changed data types for sequence number and total number of pdus. Untabify file. svn path=/trunk/; revision=26031
2008-04-25Register dissector by name.Stig Bjørlykke1-1/+2
svn path=/trunk/; revision=25180
2008-03-07Updated to Version 2.0 Draft 6.Stig Bjørlykke1-22/+86
Removed unofficial port numbers. svn path=/trunk/; revision=24582
2008-01-16Changed to checksum_good and checksum_bad to align with other dissectors.Stig Bjørlykke1-2/+2
svn path=/trunk/; revision=24115
2007-12-19Added total retransmission time analysis field.Stig Bjørlykke1-3/+18
svn path=/trunk/; revision=23924
2007-12-19- Added first version of P_Mul sequence analysis.Stig Bjørlykke1-49/+511
- Added expert info for Discard_Message_PDU. svn path=/trunk/; revision=23922
2007-11-25Added checksum.good and checksum.bad items.Stig Bjørlykke1-1/+26
svn path=/trunk/; revision=23590
2007-11-19Added port range.Stig Bjørlykke1-47/+34
svn path=/trunk/; revision=23491
2007-10-23Apply the small performance enhancment patches for:Anders Broman1-2/+2
- 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