aboutsummaryrefslogtreecommitdiffstats
path: root/epan/reassemble_test.c
AgeCommit message (Collapse)AuthorFilesLines
2015-10-22Use address functions instead of ADDRESS macros in asn1 and epanGerald Combs1-2/+2
Replace CMP_ADDRESS, COPY_ADDRESS, et al with their lower-case equivalents in the asn1 and epan directories. Change-Id: I4043b0931d4353d60cffbd829e30269eb8d08cf4 Reviewed-on: https://code.wireshark.org/review/11200 Petri-Dish: Michal Labedzki <michal.labedzki@tieto.com> Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-02-06More emem removal.Jeff Morriss1-5/+0
Remove emem's 8-byte-memory-alignment configure check as well as references to all the environment variables emem used. Change-Id: I897aec9e9c68e064454561e7a9f066b18892ec66 Reviewed-on: https://code.wireshark.org/review/6950 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-02-04emem is dead! Long live wmem!Michael Mann1-4/+0
Change-Id: Iddd1200e62bf3200cb1a68408378dd9d47120b77 Reviewed-on: https://code.wireshark.org/review/6939 Reviewed-by: Michael Mann <mmann78@netscape.net> Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Evan Huus <eapache@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-01-18This currently requires emem.h.Guy Harris1-0/+1
Change-Id: I55cca8de9be07fbec4e771c0f6d50075fc75bef8 Reviewed-on: https://code.wireshark.org/review/6642 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-01-18Remove some apparently-unnecessary includes of emem.h.Guy Harris1-1/+0
Change-Id: Ib7d1b587b439ff21ec6b7f1756ce6ccf25b66f80 Reviewed-on: https://code.wireshark.org/review/6635 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-10-10Add editor modelines; Adjust whitespace as needed.Bill Meier1-4/+17
Change-Id: I3dc57f4c2ca57585103e3b71503ac4c332903e50 Reviewed-on: https://code.wireshark.org/review/4594 Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-03-04Remove all $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^ \* \$Id\$/,+1 d') Fix manually some typo (in export_object_dicom.c and crc16-plain.c) Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8 Reviewed-on: https://code.wireshark.org/review/497 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-02-25Remove trailing whitespaceBill Meier1-2/+2
Change-Id: I8116f63ff88687c8db3fd6e8e23b22ab2f759af0 Reviewed-on: https://code.wireshark.org/review/385 Reviewed-by: Bill Meier <wmeier@newsguy.com> Tested-by: Bill Meier <wmeier@newsguy.com>
2013-07-17Remove fragment_data, add fragment_head, fragment_item - for now alias it to ↵Jakub Zawadzki1-23/+24
the same structure. This is begin of work to split fragment head and fragments items. svn path=/trunk/; revision=50708
2013-07-14Rewrite reassemble API to use TVBs instead of raw data.Jakub Zawadzki1-91/+91
(it seems to be working for TCP ^^) svn path=/trunk/; revision=50580
2013-07-14Squelch a "not permitted in C++" warning.Guy Harris1-1/+1
svn path=/trunk/; revision=50574
2013-03-23Get rid of the DCE RPC stuff; these tests should test the code path forGuy Harris1-101/+2
all types of keys. Make the tables in main static, so we don't initialize them at run time; perhaps that'll help figure out why reassemble_test is crashing on Windows apparently before even calling emem_init(). svn path=/trunk/; revision=48513
2013-03-23Update to match the changes made to the reassembly code APIs.Guy Harris1-221/+217
svn path=/trunk/; revision=48493
2012-09-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss1-3/+1
svn path=/trunk/; revision=45016
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2012-02-28OK, to heck with it - link reassemble_test with libwireshark. Trying toGuy Harris1-50/+0
selectively pick up particular object files is just too much of a mess. Alas, this requires that we add some additional symbols to the list exported by libwireshark; the DCE RPC ones shouldn't be global, but reassemble_test uses them, so.... Get rid of stubs in reassemble_test.c - they just stub out routines from libwireshark, but that's not necessary any more. svn path=/trunk/; revision=41223
2011-07-11More GLIB_CHECK_VERSION cleanups. Update the minimum GLib/GTK+ versionsGerald Combs1-2/+0
in README.devloper. Remove g_gnuc.h since it's no longer needed. Remove tvbuff_init(), tvbuff_cleanup(), reassemble_init(), and reassemble_cleanup() since they were only used for older GLib versions which didn't support GSlices. Assume we always support the "matches" operator. svn path=/trunk/; revision=37978
2011-03-03Add more duplicate fragment tests.Jeff Morriss1-14/+212
svn path=/trunk/; revision=36132
2011-03-03When reassembling fragments, don't stop looking at fragments just because theJeff Morriss1-0/+203
current fragment pushes us past the reassembled size: it may be that the current fragment is a duplicate/retransmission and will be ignored. Also, if we detect a conflict between a previous and the current fragment, flag the current (conflicting) fragment as FD_OVERLAPCONFLICT. Do *not* flag the fragment that got us into the reassembly routine (probably the final fragment): it is not (may not be) the guilty fragment. Clean up some spacing. Also add reassembly tests for duplicate/retransmitted fragments. svn path=/trunk/; revision=36131
2010-12-10Additions to allow the valgrind to test for reassembly.c memory leaks.Bill Meier1-6/+240
Specifically: free all dynamically allocated memory after each test (or at program completion). Also: add some debug functions (conditionally enabled) to print information about the fragment_table and reassembled_table fd-chains. svn path=/trunk/; revision=35172
2010-10-30Rev 29427 added packet_add_new_data_source() with a comment indicating thatJeff Morriss1-4/+0
the data source does not need to be allocated if (!tree). Rev 30158 took the if (!tree) check out indicating that the check was invalid. So: (since packet_add_new_data_source() now only calls add_new_data_source()), remove packet_add_new_data_source(). svn path=/trunk/; revision=34717
2010-09-30Get reassemble_test building again (after 34285).Jeff Morriss1-0/+5
svn path=/trunk/; revision=34296
2010-09-08Fake proto_item_prepend_text() in reassemble_test.Stig Bjørlykke1-0/+3
svn path=/trunk/; revision=34075
2010-05-24Use the new name for the last argument to proto_tree_add_item().Guy Harris1-1/+1
svn path=/trunk/; revision=32935
2010-05-24Fix reassemble_test's (copy of the) proto_tree_add_item() prototype to get itJeff Morriss1-4/+4
compiling again. fragment_add_seq_check(), fragment_add_seq_802_11(), and fragment_add_seq_next() all call fragment_add_seq_check_work() so make their prototypes match each other in const-ness. This fixes a warning when compiling reassemble_test. svn path=/trunk/; revision=32933
2010-04-04Fix to match changes to the signatures of the real versions of thoseGuy Harris1-6/+7
functions. svn path=/trunk/; revision=32370
2010-02-24Mark variables as staticKovarththanan Rajaratnam1-5/+6
svn path=/trunk/; revision=31983
2010-02-24We already pull in glib.h so use gboolean instead of int to declare boolean ↵Kovarththanan Rajaratnam1-2/+3
types. svn path=/trunk/; revision=31982
2010-02-24Make do_test() staticKovarththanan Rajaratnam1-1/+1
svn path=/trunk/; revision=31980
2010-02-24Constify format stringKovarththanan Rajaratnam1-1/+1
svn path=/trunk/; revision=31979
2009-10-20Add emem_init() which initializes both the ep_ and se_ allocators; have allJeff Morriss1-2/+1
callers use that instead of initializing each allocator individually. svn path=/trunk/; revision=30646
2009-10-20Initialize se_ memory, too (since it is used by the reassembly code). ↵Jeff Morriss1-23/+29
Reindent a bit. svn path=/trunk/; revision=30638
2009-09-06Split a bunch of init routines into init() and cleanup(). This allows us to ↵Kovarththanan Rajaratnam1-18/+18
free memory properly on shutdown. This is an initial step. There's still some work to do. svn path=/trunk/; revision=29754
2009-08-15This patch introduces packet_add_new_data_source() which effectively ↵Kovarththanan Rajaratnam1-0/+4
deprecates add_new_data_source(). This is based on the following observation: 1) The tvb + name (aka. data_source) is only used when the protocol tree is visible The current implementation of add_new_data_source() doesn't take this into account and simply allocates a data_source regardless. This is what packet_add_new_data_source() tries to rectify. A couple of dissectors have already been switched over to the new packet_add_new_data_source(). Many are still missing. Help appreciated! svn path=/trunk/; revision=29427
2007-04-11right; this is going badly.Richard van der Hoff1-21/+37
Let's take a different tack: include only the bare minimum, and set up stubs for everything else. svn path=/trunk/; revision=21379
2007-04-10fix typo in eth_stdio_fopen defnRichard van der Hoff1-1/+1
svn path=/trunk/; revision=21369
2007-04-10more libs, more stubs... i'll get there one dayRichard van der Hoff1-0/+20
svn path=/trunk/; revision=21363
2007-04-03mpa_* stubs to make this link properlyRichard van der Hoff1-0/+10
svn path=/trunk/; revision=21317
2007-02-21From Richard van der Hoff:Anders Broman1-0/+1057
01_reassemble_test.patch ------------------------ I didn't want to do anything without some unit tests, so here they are. This allows a standalone binary, epan/reassemble_test, to be built; this can be run from the commandline and should end up printing out "success" if all goes well. NOTE the changes to makefile.am NOT checked in currently. Incidentally: is it possible to get the buildbot to run things like this, exntest and tvbtest? 02_reassemble_refactor.patch ---------------------------- fragment_add_seq, fragment_add_dcerpc_dg and fragment_add_seq_check_work were all pretty much carbon-copies of each other. This patch factors out the common parts of the routines into a new routine, fragment_add_seq_key(). 03_reassemble_partial_reassembly.patch --------------------------------------- This makes fragment_set_partial_reassembly() work for datagrams assembled with fragment_add_seq(). The patch itself is actually quite small, but it adds another unit test which is reasonably lengthy. svn path=/trunk/; revision=20888